1 | /// <reference path="../index.d.ts" />
|
2 | import * as Velocity from 'velocityjs'
|
3 |
|
4 | Velocity.render('hello world');
|
5 |
|
6 | const compiler = new Velocity.Compile(Velocity.parse('hello world'), {
|
7 | valueMapper(value) {
|
8 | console.log(value);
|
9 | return value;
|
10 | },
|
11 | });
|
12 | const str = compiler.render({}, {}, true)
|
13 | console.log(compiler.cost) |
\ | No newline at end of file |