File: test_userfunc1.tmpl

package info (click to toggle)
libhtml-template-pro-perl 0.9524-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,512 kB
  • sloc: ansic: 1,841; perl: 1,474; yacc: 404; pascal: 118; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<HTML><BODY>
<H1> test expr with perl-supplied functions </H1>
hello('dad')=<tmpl_var expr="hello('dad')">
lc('DAD')=<tmpl_var expr="lc('DAD')">
lc(ONE)=<tmpl_var expr="lc(ONE)">
sprintf('1+1=%d', TWO)=<TMPL_VAR EXPR="sprintf('1+1=%d', TWO)">
<H1> test expr with user-defined functions </H1>
registered_func('self')=<tmpl_var expr="registered_func('self')">
hello_string()=<tmpl_var expr="hello_string()">
arglist()=<tmpl_var expr="arglist()">
arglist('')=<tmpl_var expr="arglist('')">
arglist('','')=<tmpl_var expr="arglist('','')">
arglist('a','b')=<tmpl_var expr="arglist('a','b')">
</body></html>