I am looking for an example for how to implement a template language like Liquid, Django/Jinja or Handlebars with Lezer/CM6. All the examples I found so far are for the “old” version.
I am trying to figure out how to define an “interleaved” language, where you have template directives/expressions in-between fragments of a different language such as HTML/XML, for example:
I’m working on exactly that problem right now, but it’s somewhat involved and it might be a while until I have something usable. So at the moment there’s no real way to work with such languages in CM6.
Just a general update: I think I have a working approach now, and am working on overhauling Lezer to support it, but it’s not looking like it will be finished before I leave on vacation next week, so don’t hold your breath.