eta-dev / eta-docs

Documentation website for the Eta template engine
https://eta.js.org
7 stars 18 forks source link

Adding Parser Option to Playground #7

Open shadowtime2000 opened 4 years ago

shadowtime2000 commented 4 years ago

It would be nice to add a parse option to the playground result so you can view the syntax tree.

diegoacs0 commented 2 years ago

Can you show me an example?

shadowtime2000 commented 2 years ago

@gitBaiano I'm thinking like if you put in:

Hi, my name is <%= it.name %>

it will return:

['Hi, my name is', { t: 'i', val: 'it.name' }]

Would be kind of useful to those who want to play around with the parser for a plugin.