Repository navigation
Ignoring curly braces in strings #1124
|
I have a collection with a hidden field for defining permalink structure: This is meant to output the following, which is then processed by Eleventy at build time.
However, Sveltia seems to process anything within double curly braces as one of its own template tags, so what I actually get is:
I've been trying to escape these curly braces so that Sveltia won't do anything with the string before passing it along to Eleventy. (Not all content for this site is being created directly in Sveltia, so for consistency's sake, I'd like to use the Eleventy tags and filters.) Is this even possible, and if so, what is the best way to accomplish it? Things I've tried so far that haven't worked:
Thanks in advance! |
Replies: 2 comments 3 replies
|
As mentioned in the doc, you can’t have spaces before and after the curly braces. It has to be default: 'portfolio/{{title | slugify}}/index.html' |
|
You can now escape template tags with v0.255.0. |
You can now escape template tags with v0.255.0.