# The basics of using SSGen
# (c) theokrueger 2024
# GPL-3.0 Licensed
# Intro
h1: Tag Metadata
p: >
It is pretty important to be able to style your webpage.
SSGen allows specifying arbitrary tag metadata through use of underscores.
---
# Example
- p: 'Metadata can be specified in HTML Tags like so:'
- span:
_class: two-column-grid-with-spacer
yaml:
- !DEF [NAMED_CODE_NAME, "input_directory/index.page"]
- !DEF
- NAMED_CODE_CONTENT
- |
html:
body:
_class: someclass
_style: 'margin: 5%';
h1: Title
p: Paragraph contents
- !INCLUDE /blocks/named-code.block
br: ''
html:
- !DEF [NAMED_CODE_NAME, "output_directory/index.html"]
- !DEF
- NAMED_CODE_CONTENT
- |
<html>
<body class="someclass" style="margin: 5%;">
<h1>Title</h1>
<p>Paragraph Contents</p>
</body>
</html>
- !INCLUDE /blocks/named-code.block
# Clarification
- p: No input validation is performed by SSGen for any tag metadata. This means you can define and use any custom tag metadata, albeit to limited functionality.