template-benchmark's People
Forkers
zxcabs michelino dioteos ckknight philippsimon atma justan th0r xiaoshen floatdrop djvirgen slm-lang slightboy sunnycmf vickyisly hanshammel yousseftaghlabi mitica lottid allinallin mikeloxiao hustxiaoc applideveloper emat12 pornchaisakulsrimontri eosite vizonluo vedmalex imposibrus tangkunyin lext-7 aa6 minicacristi malefique barisusakli yankun01 acanguven elo7 lsa-pilot zwjdreammail ts-thomas moda20 jesonwork levykstemplate-benchmark's Issues
gaikan's template is slightly wrong
Currently looks like:
<html>
<head>
<title>#{data.title}</title>
</head>
<body>
<p>#{data.text}</p>
<ins data-for="data.projects">
<a href="#{data.url}">#{data.name}</a>
<p>#{data.description}</p>
</ins>
<ins data-if="!data.projects">
No projects
</ins>
</body>
</html>
If you see the data-if="!data.projects"
, that does not do a length check, so in the event that the template were passed an empty array, it would still not print out "No projects".
How to use javascript with ect template
ex:
<script>
let color: 'red';
</script>
<div class="box <%- @color %>"></div>
<style rel="stylesheet">
.box {
width: 100px;
height: 100px;
}
.red {
background: red;
}
</style>
Add Vash
Could you add Vash https://github.com/kirbysayshi/vash
Add art-template
How does ECT perf compare against art-template?
Handlebars and doT might be faster since they use compiled code
Our team uses handlebars and is comparing several template engines for performance and. As I got from the docs that Handlebars and doT are very fast when they are precompiled.
I think this case should be added into consideration.
Add Nunjucks
Could Nunjucks be added too?
Add Monkberry
DOM-based template engine http://monkberry.js.org
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.