defunkt / pystache

Mustache in Python
http://mustache.github.com/
MIT License
1.31k stars 308 forks source link

How to get required/optional fields? #203

Open patarapolw opened 5 years ago

patarapolw commented 5 years ago

For example u"Hey {{#who}}{{is}}!{{/who}}"

Should return

{
    "required": [],
    "optional": ["who", "is", "who.is"]
}
wphakawan commented 4 years ago

For example u"Hey {{#who}}{{is}}!{{/who}}"

Should return

{ "required": [], "optional": ["who", "is", "who.is"] } **How can do for next step?