Class skooma.slotty

Slot helper for skooma templates.

Skooma templates are intended to be free of invisible side effects. This helper library offers a way to pass content around different templates.

Usage:

    local html = require 'skooma.env' 'html'
    local slots = require 'skooma.slotty' ()
    -- Use slots
    local document = html.html(html.ul{
    	html.li("Home");
    	html.li("About");
    	slots.nav(); -- Returns an empty table for now
    })
    -- Fill slots
    slots.navbar(html.li("Contact"))
    -- Renders the whole thing
    print(tostring(documnet))
    


generated by LDoc 1.4.6 Last updated 2022-12-26 00:16:42