comps-real-addons
v1.0.3
Published
Real's template render syntax in comps.
Downloads
7
Readme
comps-real-addons
Template rendering syntax sugar for Real using Comps
Noti: Requires version of Real since
1.5.0
Usage
Install:
npm install comps-real-addons --save
Set custom tag:
var comps = require('comps')
var compsRealAddons = require('comps-real-addons')
compsRealAddons(comps)
Syntax
{%= $expression /%}
Will be compiled to real's r-text directive:
<span r-text>{$expression}</span>
{%if= $expression /%}
Will be compiled to real's r-text directive with r-if:
<span r-if="{$expression}" r-text>{$expression}</span>
{%- $expression /%}
Will be compiled to real's r-html directive:
<span r-html>{$expression}</span>