HaXtatic Docs

demoCfgArgs

Outputs <h4>Hello, <b>greetname!</b></h4>.

In a nutshell

  1. Declaration of an |X|demoCfgArgs:myTag or |X|demoCfgArgs:myTag:greetname directive in a *.haxproj file,
    • further configuring: (no other settings)
  2. Usage anywhere: {X|myTag|} or {X|myTag:greetname |}

Stage:

Early — this X-renderer does not require a page context for rendering: therefore many demoCfgArgs-invoking X-tags encountered during pre-templating (at start-up time) may be eagerly processed immediately in-place (for overall-reduced per-page processing loads).

Purpose

This "verging on useless" X-renderer exists solely to serve as a code sample to start from when wanting to develop custom X-renderers within the HaXtatic code-base in Haskell.

  
…Scroll to: