1 |
|
2 |
|
3 | const tmplconv = require('tmplconv')
|
4 |
|
5 | // Render files from existing template
|
6 | tmplconv.render('asset/app-tmpl', 'demo/demo-app', {
|
7 | // Data to render
|
8 | data: {
|
9 | 'name': 'my-awesome-app',
|
10 | 'description': "This is an example for the app templates."
|
11 | }
|
12 | }).then((result) => {
|
13 | /* ... */
|
14 | })
|