ZBlocker655 / nunjucks-parsers

Experimenting with writing parsers for the Nunjucks templating language.
2 stars 1 forks source link

Check Fluid #1

Open sebastienros opened 1 year ago

sebastienros commented 1 year ago

Fluid is a Liquid parser, so close to nunjucks. Maybe that will be my next project since it's an extension to Liquid. Also check https://github.com/sebastienros/parlot which is what I used for parsing. It's faster than Pidgin, you can see the benchmarks. It provides the same kind of fluent API and other tricks.

ZBlocker655 commented 1 year ago

Thanks for sharing this with me! I had not come across Parlot in my searches, but I'm bookmarking it now because I may try it out later. For the needs of my future project, I'll be embedding single template statements in spreadsheet cells, so I won't be able to make use of a standard template engine like your Fluid. I'll just need a parser that handles one expression and/or statement at a time.