Skip to content

feat: ruby_render method to match liquid_render #976

@brainbuz

Description

@brainbuz

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions