Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/handlebars-lang/handlebars.js
/ astFor
Function
astFor
spec/parser.js:6–9 ·
view source on GitHub ↗
(template)
Source
from the content-addressed store, hash-verified
4
}
5
6
function
astFor(template) {
7
var
ast = Handlebars.parse(template);
8
return
Handlebars.print(ast);
9
}
10
11
it(
'parses simple mustaches'
,
function
() {
12
equals(astFor(
'{{123}}'
),
'{{ NUMBER{123} [] }}\n'
);
Callers
1
parser.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected