kaysackey / nemo Goto Github PK
View Code? Open in Web Editor NEWA HTML template language built over Mako for rapid development, and clearer code
License: Other
A HTML template language built over Mako for rapid development, and clearer code
License: Other
Haml has -# for a comment tag, whats the equivalent in nemo ?
How to repeat:
It will not be found because the app_directories.Loader isn't being emualted.
You can solve this by adding your app template to TEMPLATE_DIR in settings.py but this isn't a long-term solution because eventaully apps will be written that use nemo as the default template language.
Calling a Mako def is done like so:
<namespace:method arg="">
</namespace:method>
Which is a bit verbose. However if we can trim it down to something like this:
% namespace:method arg=""
Then we'd be able to gain the glories of DMSL-like filters without actually having to code anything.
Example:
% head
% compress:js
/js/main.js
/js/jquery.js
Then the compress def acts to compress those files, and output a link to the compressed copy.
Setting up djmako with "pip install djmako" makes mako templates working just fine. But Django admin doesn't work afterwards. Here is the solution that worked on my end https://github.com/spinus/djmako. Take a look if you can have it to update nemo's wiki page. Thanks
Why isn't this project up on PyPI? You don't even have a setup.py file.
I get:
$ pip install nemo-templates Collecting nemo-templates Could not find a version that satisfies the requirement nemo-templates (from versions: ) No matching distribution found for nemo-templates
Right now nemo runs in strict mode.
Enable a permissive mode to allow mixed indentation of html and nemo statements.
The with 'indentation' in their name check against this. They are expected to succeed in permissive mode.
Use |> to terminate a nemo chain and everything after that marker will be treated as a Python one liner.
Implementation wise, this the same as wrapping it in a mako substitution. ${}
This requirement came from mako where indentation is unimportant.
Perhaps, set a flag that allows tags to be unclosed and automatically closes them.
Ideally, it should only be disabled under strict mode.
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.