vanilla-framework icon indicating copy to clipboard operation
vanilla-framework copied to clipboard

Implement rendering Jinja templates in example code snippets

Open jmuzina opened this issue 1 year ago • 2 comments

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.

jmuzina avatar Jul 26 '24 15:07 jmuzina

Thank you for reporting us your feedback!

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

This message was autogenerated

I believe this is already in progress. So triaging as part of current codebase.

bartaz avatar Sep 25 '24 08:09 bartaz

Closing as completed in #5321

jmuzina avatar Dec 18 '24 17:12 jmuzina