Giter Club home page Giter Club logo

nml's People

Contributors

nsandman avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

thecodechef

nml's Issues

List of More Tags

Hey Whenever you get around to it here is a list of future tags to implement.

  • For | &for 'variable' in 'array' &endfor
  • Import | &import 'imported macro file'
  • Include | &include 'included partial file'
  • Extends | &extends 'extended template.nml'
  • Blocks | &block 'name' &endblock

and also add operator support in logic tags for example

&if {{user}} is|and|or 'Jeremy'
  # Do Something
&endif

but in next release you need to figure out the css & js tags. Oh & meta,img tags as well

Needs Work !

Well I like your idea but your parser.py has some things it shouldn't and my main problem is that your readme doesn't match your iinstructions but here are a few suggestions to help

Block Tags

   $head

   %

turns into

   <head>

   </head>

Inline Tags

@link (rel: stylesheet href: css/main.js)

turns into

<link rel="stylesheet" href="css/main.css" />

Oh and your parser doesn't do anything with the ampersand like your readme says it does

well here is a fix for that

Logic Tags

&for item in items
  &if item.name
    $h2(id: item.id) item.name%
  &else
    $h2(id: empty_tag)'Sorry No Name Here'%
  &endif
&endfor

here is a good example
https://github.com/thecodechef/photo_library/blob/master/Screenshot.png

Add a Dev Branch & Change up Other Stuff

hey just thought you could add a dev branch, that way you could have some input by others and it would be good to have preview of future builds.

Instead of Having This

{
    "name": "NML Language Syntax",
    "details": "https://bitbucket.org/nsandman09/nml_language",
    "homepage": "https://github.com/nsandman09/nml",
    "author": "nsandman09",
    "labels": ["html", "preprocessor", "easy", "website"],
    "releases": [
        {
            "sublime_text": "*",
            "tags": true                    
        }
    ]
},

Try this

{
    "name": "NML Language Syntax",
    "details": "https://github.com/nsandman09/nml",
    "author": "nsandman09",
    "labels": ["html", "preprocessor", "easy", "website"],
    "releases": [
        {
            "sublime_text": "*",
            "tags": true                    
        }
    ]
},

just put the langage file in the github repo and your good.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.