GitHub user dosubot[bot] added a comment to the discussion: Jinja in markdown
<!-- Answer --> Yes, in Superset, you can use Jinja templates within markdown components. However, to enable this functionality, you need to ensure that the `ENABLE_TEMPLATE_PROCESSING` feature flag is enabled in your `superset_config.py` file <sup>[[1]](https://github.com/apache/superset/blob/master/docs/docs/configuration/sql-templating.mdx)</sup>. While there is support for Jinja templating in SQL queries, specific documentation or examples for using Jinja templates directly within markdown components are not readily available in the repository. However, Superset does provide a `template_params` field that allows you to define parameters in JSON format, which can be used in SQL queries with Jinja templating syntax <sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/components/Datasource/DatasourceEditor.jsx)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/superset-frontend/src/SqlLab/components/TemplateParamsEditor/index.tsx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/07a5e35c-36c4-4f0e-bd5a-c8a59387608a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/07a5e35c-36c4-4f0e-bd5a-c8a59387608a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/07a5e35c-36c4-4f0e-bd5a-c8a59387608a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/07a5e35c-36c4-4f0e-bd5a-c8a59387608a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/07a5e35c-36c4-4f0e-bd5a-c8a59387608a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/07a5e35c-36c4-4f0e-bd5a-c8a59387608a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/07a5e35c-36c4-4f0e-bd5a-c8a59387608a?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/32977#discussioncomment-12700232 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
