1.1.0 • Published 7 years ago

cotton-candy v1.1.0

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

cotton-candy 🍬

ES6 Template String template engine

Use Cases

  • Substituting parts of the template with applications specific variables.
  • Uniform site theming through included HTML.
  • The dynamic creation of Navigation Elements from Arrays.

Features

  • Base features from ES6 Template Literals 1,2
  • Includes ${include('cwd:views/header.html')} for theming of sites. (Supports configTools paths.)
  • Setters ${get('moduleHeader','<script></script>')}and Getters ${get('moduleHeader')} inside templates allow injecting HTML inside included templates.