# The basics of using SSGen # (c) theokrueger 2024 # GPL-3.0 Licensed # Intro - h1: 'Special file: META.yaml' - p: > META.yaml is an optional file that exists (or doesn't) in the root of your source directory. It is evaluated like any other .page file, but exists as the parent to any non-included .page file. - p: > It is also guaranteed to only be evaluated once, and as such is most suited for the !COPY directive. The !COPY !COPY_DIR directives are useful to copy assets from the source directory to the output directory. --- # Example span: - !DEF [NAMED_CODE_NAME, "input_directory/META.yaml"] - !DEF - NAMED_CODE_CONTENT - | \# Define some global variables - !DEF [GLOBAL, some_value] - !DEF [ANOTHER_GLOBAL, some_other_value] \# Copy some files to the same location in the output directory \# Syntax: !COPY[_DIR] "file_to_copy" - !COPY "somefile.txt" - !COPY_DIR "somedir/" - !INCLUDE /blocks/named-code.block # Clarification p: This file is incredibly useful, and you can view a full example of it in action in the source to this webpage