Vote count:
0
In mustache/handlerbars or any templating system in js, are there any tools to gather all the variables that a template refers to?
for example, given input
<div class="{{divclass}}">
{#item}}
<h1>{{title}}</h1>
<span>{{text}}</span>
{{/item}}
</div>
would return something like
{
divclass: "",
item: {
title: "",
text: ""
}
}
I tried googling around and checking out handlebars docs but could not find anything suitable
asked 43 secs ago
Mustache/handlebars templating: figure out context data structure from template html
Aucun commentaire:
Enregistrer un commentaire