4 ms·
Gotcha. Pretty much the template language is close enough to the destination language that you don’t need an AST for the template language at all. That makes s
by narush 4y ago
Gotcha. Pretty much the template language is close enough to the destination language that you don’t need an AST for the template language at all.
That makes sense! Seems like a legit simplification to take advantage of.
Do you have any plans to make the template language more advanced/complex?
- lucasluitjes 4y agoWell, looking at the rails monocles (for matching controllers, views, etc) a common pattern is custom matchers/replacers for things like "ast.children.first.to_s.singularize.camelize", so a shorthand for defining those in both directions could be handy. Other than that, not right now. But if there are common situations where you end up writing the same matchers/replacers, those would be prime candidates for built-in placeholders.