File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
## Simple example with default options
2
2
3
3
``` ts
4
- import { Handlebars } from ' https://deno.land/x/handlebars/mod.ts' ;
4
+ import { Handlebars } from " https://deno.land/x/handlebars/mod.ts" ;
5
5
6
6
const handle = new Handlebars ();
7
7
8
- const text = await handle .renderView (' index' , { name: ' Alosaur' });
8
+ const text = await handle .renderView (" index" , { name: " Alosaur" });
9
9
10
10
console .log (text );
11
-
12
11
```
13
12
14
13
Just run this script
15
14
16
15
` deno run --allow-read mod.ts `
17
16
18
-
19
17
Returns:
20
18
21
19
``` ts
27
25
28
26
----
29
27
<span >footer ! < / span >
30
-
31
28
```
Original file line number Diff line number Diff line change 1
1
// import { Handlebars } from 'https://deno.land/x/handlebars/mod.ts';
2
- import { Handlebars } from ' ../mod.ts' ;
2
+ import { Handlebars } from " ../mod.ts" ;
3
3
4
4
const handle = new Handlebars ( ) ;
5
5
6
- const text = await handle . renderView ( ' index' , { name : ' Alosaur' } ) ;
6
+ const text = await handle . renderView ( " index" , { name : " Alosaur" } ) ;
7
7
8
8
console . log ( text ) ;
You can’t perform that action at this time.
0 commit comments