joytpl
Version:
joy - js template engine with short syntax and modern features
137 lines (136 loc) • 5.79 kB
JSON
{
"ASTy": {
"T": "Joy",
"L": {
"L": 1,
"C": 1,
"O": 0
},
"C": [
{
"T": "Condition",
"L": {
"L": 1,
"C": 1,
"O": 0
},
"C": [
{
"T": "ConditionWithExpression",
"L": {
"L": 1,
"C": 5,
"O": 4
},
"C": [
{
"T": "FnIdentifier",
"L": {
"L": 1,
"C": 5,
"O": 4
},
"C": [
{
"T": "Identifier",
"L": {
"L": 1,
"C": 5,
"O": 4
},
"C": [
{
"T": "Name",
"L": {
"L": 1,
"C": 5,
"O": 4
},
"A": {
"value": "foo"
}
}
]
},
{
"T": "Block",
"L": {
"L": 1,
"C": 11,
"O": 10
},
"C": [
{
"T": "Joy",
"L": {
"L": 1,
"C": 12,
"O": 11
},
"C": [
{
"T": "Text",
"L": {
"L": 1,
"C": 12,
"O": 11
},
"A": {
"value": "\r\n function body\r\n"
}
}
]
}
]
}
]
},
{
"T": "Block",
"L": {
"L": 3,
"C": 3,
"O": 34
},
"C": [
{
"T": "Joy",
"L": {
"L": 3,
"C": 4,
"O": 35
},
"C": [
{
"T": "Text",
"L": {
"L": 3,
"C": 4,
"O": 35
},
"A": {
"value": "\r\n conditional body\r\n"
}
}
]
}
]
}
]
}
]
},
{
"T": "Text",
"L": {
"L": 5,
"C": 2,
"O": 60
},
"A": {
"value": "\r\n"
}
}
]
}
}