samples/customer.ysl2
author Hartmut Goebel <h.goebel@crazy-compilers.com>
Tue, 17 Mar 2020 10:26:38 +0100
changeset 43 fb35b9db9ca1
parent 0 76005e62091d
permissions -rw-r--r--
Move data files into the Python package.

The packe directory is now always searched for include files, after
all other directoreis given in $YML_PATH.
include yslt.yml2

stylesheet {
    template "/" html {
        head title "Customer List";
        body apply "list";
    }

    template "list" table apply "customer[starts-with(name, 'Kurt')]";

    template "customer" tr {
        td value "id";
        td value "name";
    }
}