UNPKG

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