masyl / dali Goto Github PK
View Code? Open in Web Editor NEWDali is templating engine for javascript. It can run on the client in any browser and on servers such as node.js
Dali is templating engine for javascript. It can run on the client in any browser and on servers such as node.js
Maybe it would be a great addon to make alternate blocks conditionable and itteritable... Is that really words?
Surement que oui!
If using render at start of template page without at least a line feed we get the error specified in the issue title.
When using {{template /}} + {{load /}} inside a view rendered by {{render viewpath /}}, the following error is thrown :
RenderingFailed: Template rendering failed, with following error:
error: TypeError
message: Cannot read property 'partial' of undefined
{{ each item.variable}} will crash if variable.length == 0;
In that case it should really just ignore the block. My workaround right now if to wrap it in an if
statement.
Hi,
Very good template engine! :)
Wanna use it in node.js, have a problem with Dali object access.
var Dali = require("./libs/dali").Dali,
dali = require("./libs/dali").dali;
Dali.register({
Filters: {
"h1": function(args) {
return "";
}
}
});
ERR: TypeError: Cannot call method 'register' of undefined
Regards Evgeni
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.