Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For template engine converters, set template_engine frontmatter automatically #177

Merged
merged 1 commit into from
Nov 1, 2020

Conversation

jaredcwhite
Copy link
Member

…and check before conversions. This fixes #176

Basically we only want one template engine at a time per file. No Liquid + ERB, no ERB + Slim, whatever. Doesn't make sense. So this code guarantees mutual exclusivity. It's a little verbose and not great on the DRY metric, so I'll look into adding additional smarts to the Converter parent class so the individual converters can get cleaned up a bit. But for now, this should work.

@jaredcwhite jaredcwhite merged commit 7cef961 into main Nov 1, 2020
@jaredcwhite jaredcwhite deleted the template-engine-extensions-bug branch November 1, 2020 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant