MkIFrame
Node for embedding an IFrame.¶
Example: With caption¶
Bases: MkTemplate
| Name | Children | Inherits |
|---|---|---|
| MkTemplate mknodes.templatenodes.mktemplate Node representing a jinja template. |
graph TD
94842457483008["mkiframe.MkIFrame"]
94842457643472["mktemplate.MkTemplate"]
94842457569728["mkcontainer.MkContainer"]
94842456688800["mknode.MkNode"]
94842459618352["node.Node"]
139878036543968["builtins.object"]
94842457643472 --> 94842457483008
94842457569728 --> 94842457643472
94842456688800 --> 94842457569728
94842459618352 --> 94842456688800
139878036543968 --> 94842459618352
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkiframe/metadata.toml
[metadata]
icon = "mdi:web-box"
name = "MkIFrame"
[examples.with_caption]
title = "With caption"
jinja = """
{{ "https://phil65.github.io/mknodes/" | MkIFrame(width=600, height=800) }}
"""
[output.html]
template = """
<iframe width="{{ node.width }}" height="{{ node.height }}" src="{{ node.url }}"></iframe>
"""