community.dhcf.eu Sign in

lazysite Feature Test

Validates processor features and serves as a live demonstrator

Test results key

A passing test shows the resolved value. A failing test shows a literal [% tag %] or broken markup.


1. Site variables

These come from lazysite/lazysite.conf and are available on every page.

Expected: resolved values, not literal tags.


2. Page variables (tt_page_var)

Defined in this page's front matter.

Expected: Hello from a page variable and https://example.com/downloads.


3. TT concatenation

Expected: release-VERSION.tar.gz and full URL with base and filename joined.


4. TT conditional

Version is not set.

Expected: "Version is set:" followed by the version number.


5. HTML link with TT variable in href

Download file

Expected: a working link with the full URL, not a literal tag.


6. Markdown headings

H2 heading

H3 heading

H4 heading

Expected: rendered headings at correct levels. H1 is reserved for the page title in the layout.


7. Markdown text formatting

Bold text, italic text, inline code, ~~strikethrough~~.

Blockquote paragraph.

Expected: all formatting applied correctly.


8. Markdown lists

Unordered:

Ordered:

  1. First
  2. Second
  3. Third

9. Markdown table

Feature Status Notes
Site vars Working From lazysite.conf
Page vars Working From tt_page_var
Tables Working Via Text::MultiMarkdown
Code blocks Working Pre-processed before TT

Expected: a rendered table with borders/styling.


10. Fenced code block

#!/bin/bash
echo "Hello from a code block"
echo "Version: [% version %]"
curl -sO [% page_base_url %]/file.tar.gz

Expected: the [% ... %] tags inside the code block should appear literally - code blocks are protected from TT processing.


11. Fenced code block with multiple languages

my $version = "[% version %]";  # should be literal
print "Hello from Perl\n";
version: [% version %]  # should be literal
site: lazysite

Expected: both blocks render as code with literal TT tags preserved.


12. Fenced div (styled block)

This content is inside a `widebox` div. The class maps to a CSS rule in the site stylesheet.
This content is inside a `textbox` div.

Expected: content wrapped in <div class="widebox"> and <div class="textbox">.


13. Definition list with HTML link in dt

release-.tar.gz
A test file entry using TT variables in both the link href and text.
Static link
A definition list entry with a plain static link.

Expected: both <dt> entries render as working links with resolved version numbers.


14. Markdown link (internal)

Back to home

Docs section

Expected: clean links without extensions.


15. Markdown link (external)

lazysite on GitHub

Expected: working external link.


16. Image

Expected: an <img> tag. The image may not exist - a broken image icon is acceptable here.


17. Inline HTML passthrough

This paragraph is inside a raw HTML div. Markdown bold inside an HTML block may not render depending on the parser.

Expected: the div renders, strong may or may not apply.


18. Remote page variable (url: prefix)

If configured in front matter with url:, a remote value would appear here. This test uses a static value to confirm the pipeline works without a network dependency.

Expected: Hello from a page variable.


Summary

If all sections above show resolved values rather than literal [% tags %], the processor is working correctly. Code blocks (section 10 and 11) should show literal tags - that is correct behaviour.