# The basics of using SSGen
# (c) theokrueger 2024
# GPL-3.0 Licensed
# Intro
- h1: Advanced
- p: SSGen has advanced features that must be explicitly enabled
- p: >
The !SHELL_CMD
directive executes a shell command,
and is enabled with the --enable-shell
flag.
The output is taken from stdout and is pasted unparsed into the document.
---
# Example
- span:
_class: two-column-grid-with-spacer
yaml:
- !DEF [NAMED_CODE_NAME, "input_directory/index.page"]
- !DEF
- NAMED_CODE_CONTENT
- |
html:
body:
h1: Title
p:
!SHELL_CMD [echo, Hello, Echo]
- !INCLUDE /blocks/named-code.block
br: ''
html:
- !DEF [NAMED_CODE_NAME, "output_directory/index.html"]
- !DEF
- NAMED_CODE_CONTENT
- |
<html>
<body>
<h1>Title</h1>
<p>Hello Echo</p>
</body>
</html>
- !INCLUDE /blocks/named-code.block
# Clarification
- p: Enable and use these features at your own risk!
- p: Well technically the whole program is run at your own risk...