使用@include里面内联元素在玉/帕格模板
问题描述:
是他们的一种方式来包括一个外部文件在编译时内联和内使用玉/帕格模板的文本标记?使用@include里面内联元素在玉/帕格模板
例如,像:
p paragraph text content with #[span.icon @include path_to_file/icon.svg] inline svg thrown into the html document
但这种解决方案:
p paragraph text content with #[span.icon #[svg #[use(href='path_to_file/icon.svg')]]]
我知道以后的作品,但是我正在寻找不使用使用的解决方案标记或外部参考
解决方案需要导致在编译时在单词之间的标记中导入文档。
我已经通过帕格文件多次浏览过。只有与此相关的东西是标签插值和块扩展,但它们似乎并没有特别考虑到这种情况。
谢谢!
答
您应该能够使用竖线,而不必使用字符串插值:
p
| paragraph text content with
span.icon
include path_to_file/icon.svg
| inline svg thrown into the html document