MediaWiki Style templates/hugo style shortcodes #560
IllustratedMan-code
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mediawiki (Wikipedia runs on it), has little components called templates that can be "called" using the following syntax
Hugo, the static site generator, has something very similar called shortcodes which have the following syntax:
Both can take arguments. I could not figure out how to do this with the current templating system. I implemented the MediaWiki syntax in a lua filter without much trouble, but it may be worth adding as a core feature.
Beta Was this translation helpful? Give feedback.
All reactions