Skip to content

Can I make static components with template_engine: serbea? #808

Answered by ayushn21
firedev asked this question in Q&A
Discussion options

You must be logged in to vote

If your template engine is set to serbea, then Bridgetown will look for serb files only. Why do you have a liquid file in there too?

As per the convention for ERB files, which Serbea also uses, all partials much be prefixed with an _. If you renamed your file to _components/_icon.serb, it should work I think. Please remember to delete the liquid file as well.

Also components are ideally for Ruby components only so I'd also recommend moving the file to _partials/_icon.serb.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@firedev
Comment options

Answer selected by firedev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants