## # # If you wish to execute commands prior to building the # site you may include an arbitrary number of keys called # pre-build. # # pre-build = echo Starting build at $(date) # pre-build = echo Running on $(hostname) # ## ## # # The first section of the configuration file refers to the # input and output paths. # # Templer will process all files matching "*.skx" beneath a # particular directory. That directory is the input directory. # input = ./input/ # ## ## # # Within the input directory we'll process files that match # a given suffix. # # By default this is ".skx", so we'll template-expand files # named "index.skx", "about.skx", etc. # # suffix = .skx # ## ## # # If we're working in-place then files will be expanded where # they are found. # # This means that the following files will be created: # # ./input/index.skx -> input/index.html # ./input/foo/index.skx -> input/foo/index.html # .. # # # in-place = 1 # ## ## # # The more common way of working is to produce the output in a separate # directory. # # NOTE: If you specify both "in-place=1" and an output directory the former # will take precedence. # # output = ./output/ # ## ## # # When pages are processed a layout-template will be used to expand the content # into. # # Each page may specify its own layout if it so wishes, but generally we'd # expect only one layout to exist. # # Here we specify both the path to the layout directory and the layout to use # if none is specified: # # # layout-path = ./layouts/ # # layout = default.layout # ## ## # # Templer supports plugins for expanding variable definitions # inside the input files, or for formating with text systems # like Textile, Markdown, etc. # # There are several plugins included with the system and you # can write your own in perl. Specify the path to load plugins # from here. # plugin-path = ./plugins/ # ## ## # # Templer supports including files via the 'read_file' function, along # with the built-in support that HTML::Template has for file inclusion # via: # # # # The latter case you may specify a search-path for file inclusion # via the include-path setting. # # include-path = include/:include/local/ # include-path = ./includes # ## ## # # If you wish to execute commands after building the # site you may include an arbitrary number of keys called # post-build. # # post-build = echo Finished build at $(date) # ## # # Anything below this is a global variable, accessible by name in your # templates. # # For example this: # copyright = © Steve Kemp # # Means you can use this in your layout, or your page text: # # # # Similarly you might wish to include a last-modified date in the layout # and this could be achieved by wruting this: # #
Page last rebuilt at
# # Providing you uncomment this line: # # date = run_command( date '+%A %e %B %Y' ) year=timestamp(%Y) #