Riven/riven/srcgen/node_modules/dot/examples/snippet.txt
Mingwei Samuel 74eb5fa045 Update example proxy for v2, use workspaces.
- `example/proxy` is new folder for `example_proxy`.
- `riven` is new folder for the main riven lib.
- Updated metadata to be an array and include HTTP method.
2021-09-09 14:31:39 -07:00

13 lines
283 B
Text

Core templating
<h1>Just static text</h1>
<p>Interpolation {{=it.f1 + it.f3}} </p>
<div> JavaScript block evaluation
{{ for(var i=0; i < it.f2; i++) {
console.log("Pass\t" + i);
}}
<div>{{=it.f3}}</div>
{{ } }}
</div>
<div> Encoding {{!'<a href="http://github.com"></a>'}}</div>