ceri-compiler
compiles template strings for ceriJS
Install
npm install --save-dev ceri-compiler
Usage
Usage: ceri-compiler [options] <file ...>
Options:
-h, --help output usage information
-V, --version output the version number
-o, --out [folder] out
-b, --bundle make a bundle
-w, --webpack webpack config to use for bundle creation
-v [version] (required) compiler version to use
Example
ceri-compiler -b someComp.js
Features of template Strings
Version 1
// syntax// template(version:Number or String, template: String)template = // output{return this} // using consolidate.jstemplate =
<!-- simple attribute --><!-- directives --> <!-- bind local scope variable to attribute --> <!-- bind local scope function to event --> <!-- set modifier to binding --> <!-- use elemental directives to pass further options --> <@click=nameOfVar toggle> <!-- create a inline expression '@' is short for 'this.' --> <!-- define a slot -->Hello {{@greeted}} <!-- create a inline expression -->
License
Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.