kalvn's links
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
EJS -- Embedded JavaScript templates http://ejs.co/
27/11/2017 09:32:55

Un moteur de templating Javascript tout bête qui fonctionne un peu comme celui d'underscore. En gros il exécute le code Javascript déclaré dans le template et génère le résultat en fonction des variables passées en paramètre.

Installation :

$ npm install ejs

Utilisation :

<script src="ejs.js"></script>
<script>
  var people = ['geddy', 'neil', 'alex'],
      html = ejs.render('<%= people.join(", "); %>', {people: people});
</script>

Le Github est là : https://github.com/mde/ejs

javascript lib template
3843 links, including 129 private
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Theme by kalvn