You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a file has template_engine: set explicitly in its front matter, all is well, but if it's determined based on extension alone, there's still some overlap. For example:
If the default template engine is Liquid, and you have an ERB file at .erb without setting template_engine:, it will still attempt to process through Liquid in addition to ERB (but only if it contains Liquid tags, because the Liquid converter does a conditional text inspection). That might be "fine" in the sense that you don't have any Liquid tags, but if you do as regular text (like in a code example), you'll be surprised that Liquid picks it up.
Same in reverse: if your default is ERB, and you have a .liquid file, it will process ERB tags alongside the Liquid processing, and that's a given because the ERB converter does not search the file for ERB tags conditionally (confused yet?!).
There's also an obscure bug that could potentially arise regarding output extensions…for example, if Liquid processes before some other converter that matches by mistake and that converter doesn't specify an .html extension explicitly, you'll get .liquid output instead which is bad.
The text was updated successfully, but these errors were encountered:
When a file has
template_engine:
set explicitly in its front matter, all is well, but if it's determined based on extension alone, there's still some overlap. For example:.erb
without settingtemplate_engine:
, it will still attempt to process through Liquid in addition to ERB (but only if it contains Liquid tags, because the Liquid converter does a conditional text inspection). That might be "fine" in the sense that you don't have any Liquid tags, but if you do as regular text (like in a code example), you'll be surprised that Liquid picks it up..liquid
file, it will process ERB tags alongside the Liquid processing, and that's a given because the ERB converter does not search the file for ERB tags conditionally (confused yet?!).There's also an obscure bug that could potentially arise regarding output extensions…for example, if Liquid processes before some other converter that matches by mistake and that converter doesn't specify an
.html
extension explicitly, you'll get.liquid
output instead which is bad.The text was updated successfully, but these errors were encountered: