how to convert '{{title}}' to 'index' in 'index.html'
Carl Meyer
unread,
Jun 10, 2016, 10:38:56 AM6/10/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Nunjucks
Remove both the string quotes and the var markers. Just use simply `title` instead of `'{{ title }}'`. You're already within a var context because of the outer curly braces, so you can just refer to vars by name to get their value; you never nest var markers in nunjucks. String quotes within a var context doesn't somehow take you back into a raw-template-data context.