Summary
The liquid_render method allows a ruby template to call a liquid component. It would make sense to be able to call a ruby component from a liquid template.
Motivation
It just makes sense in light of the philosophy of being able choose and switch freely between template engines.
https://edge.bridgetownrb.com/docs/template-engines contains: You can mix ‘n’ match template types in the same project. For example, Liquid’s simple syntax and safe execution context make it ideal for designer-led template creation, so you could use Liquid for layouts but stick to ERB for code-intensive pages and other resources.
Which implies that you can do this.
Guide-level explanation
Reference-level explanation
If the feature already exists, it needs to be documented.
Drawbacks
Unresolved Questions
Summary
The liquid_render method allows a ruby template to call a liquid component. It would make sense to be able to call a ruby component from a liquid template.
Motivation
It just makes sense in light of the philosophy of being able choose and switch freely between template engines.
https://edge.bridgetownrb.com/docs/template-engines contains: You can mix ‘n’ match template types in the same project. For example, Liquid’s simple syntax and safe execution context make it ideal for designer-led template creation, so you could use Liquid for layouts but stick to ERB for code-intensive pages and other resources.
Which implies that you can do this.
Guide-level explanation
Reference-level explanation
If the feature already exists, it needs to be documented.
Drawbacks
Unresolved Questions