nsandman / nml Goto Github PK
View Code? Open in Web Editor NEWSmall and elegant HTML preprocessor
Small and elegant HTML preprocessor
Hey Whenever you get around to it here is a list of future tags to implement.
&for 'variable' in 'array' &endfor
&import 'imported macro file'
&include 'included partial file'
&extends 'extended template.nml'
&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
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
$head
%
turns into
<head>
</head>
@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
&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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.