Just ran into an interesting question, is there a templating framework that allows including pure-HTML partials? Like what if your partial does not have any interpolation or logic in it, just HTML? Surely there's a way you could skip "rendering" the partial and just inline the static String. Rails had a `format: [:html]` option, but it's not clear whether that will bypass ERB rendering.

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
nate berkopec

@postmodern How much slower is ERB if the template has no evaluations in it? 🤔

1
3mo
Replies