Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.44 KB

iframe.rst

File metadata and controls

55 lines (33 loc) · 1.44 KB

Embed iframe

Processor name: iframe

You can embed a link within an iframe using the following text tag:

../../../verto/tests/assets/iframe/doc_example_basic_usage.md

Required Tag Parameters

  • link - The URL to embed within the iframe element.

The default HTML for iframe is:

../../../verto/html-templates/iframe.html

Example

Using the following tag:

../../../verto/tests/assets/iframe/doc_example_basic_usage.md

The resulting HTML would be:

../../../verto/tests/assets/iframe/doc_example_basic_usage_expected.html

Overriding HTML for Emedding iframes

When overriding the HTML for iframes, the following Jinja2 placeholders are available:

  • {{ link }} - The URL to embed within the iframe element.

Example

For example, providing the following HTML:

../../../verto/tests/assets/iframe/doc_example_override_html_template.html

with the following tag:

../../../verto/tests/assets/iframe/doc_example_override_html.md

would result in:

../../../verto/tests/assets/iframe/doc_example_override_html_expected.html