canonical / vanilla-framework

From community websites to web applications, this CSS framework will help you achieve a consistent look and feel.
https://vanillaframework.io
GNU Lesser General Public License v3.0
824 stars 166 forks source link

Implement rendering Jinja templates in example code snippets #5254

Open jmuzina opened 1 month ago

jmuzina commented 1 month ago

For our patterns and components that use macros (such as #5248 and #5212), we would like to some day give our users the opportunity to use our components with Jinja macros rather than plain HTML. Our current implementation of example code snippets does not allow for rendering Jinja template code, as it visits the example page, retrieves its body, and returns its HTML as-rendered, making it impossible to show Jinja template code.

We need to find a way to render Jinja template code in our examples. Then we can allow the user to switch between rendered HTML & Jinja template in the code snippet for examples that support this.

syncronize-issues-to-jira[bot] commented 1 month ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/WD-13705.

This message was autogenerated