samples/customer.ysl2
author Claudio Luck <claudio.luck@pep.foundation>
Thu, 19 Mar 2020 16:45:02 +0100
changeset 62 00a196f8d14a
parent 0 76005e62091d
permissions -rw-r--r--
Merge 2.6.3
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     1
include yslt.yml2
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     2
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     3
stylesheet {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     4
    template "/" html {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     5
        head title "Customer List";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     6
        body apply "list";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     7
    }
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     8
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     9
    template "list" table apply "customer[starts-with(name, 'Kurt')]";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    10
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    11
    template "customer" tr {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    12
        td value "id";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    13
        td value "name";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    14
    }
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    15
}