-
I'm trying to create a shortcode template file to include another file, e.g., given a file in
(The file For this, I created a shortcode template file in
Obviously, there are probably some pathing issues I need to handle, but that seems like a secondary issue, as I cannot even get the basic example shortcode template example described here to work. When compiling the above file, I get the following partial HTML:
So, it seems like the templates were properly expanded as text, but all Jinja/Mako constructs seems to be ignored. Is this some kind of bug, or am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Is your blog using a Jinja2-based theme? The templating language used in shortcodes must follow the language used by your theme. (I tried your shortcode and got a template lookup error. I would probably not depend on the template system for this, and would instead write a Python shortcode plugin). |
Beta Was this translation helpful? Give feedback.
Right, so the final(tm) plugin that also handles nesting: