diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-26 03:22:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:03 -0500 |
commit | 74dda392261e52e80a4ff24ea08f042e02154ed7 (patch) | |
tree | b1779c5c8678f686834e615f8df464770d5948ee /swat | |
parent | 98046f037200938bb2532e3c480946653a0b53bd (diff) | |
download | samba-74dda392261e52e80a4ff24ea08f042e02154ed7.tar.gz samba-74dda392261e52e80a4ff24ea08f042e02154ed7.tar.xz samba-74dda392261e52e80a4ff24ea08f042e02154ed7.zip |
r6989: - added support for esp style includes (which include a esp file, instead of a ejs file)
- added a test of esp style includes to the esptest html
(This used to be commit af3de9468ee5ba490c991901b7a4aa260c839876)
Diffstat (limited to 'swat')
-rw-r--r-- | swat/esptest/include.html | 6 | ||||
-rw-r--r-- | swat/scripting/test.esp | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/swat/esptest/include.html b/swat/esptest/include.html index b488631e836..59322cc9fa6 100644 --- a/swat/esptest/include.html +++ b/swat/esptest/include.html @@ -8,6 +8,12 @@ including /scripting/test.ejs<p> calling a function from test.ejs ...<p> <% showArray("request", request); %> +including /scripting/test.esp<p> +<% include /scripting/test.esp %> +calling a function from test.esp ...<p> +<% res = testfn('foo'); %> +result is: @@res + <form name="Cancel" method="POST" action="index.html"> <input name="submit" type="submit" value="Cancel"><br> </form> diff --git a/swat/scripting/test.esp b/swat/scripting/test.esp new file mode 100644 index 00000000000..614a42410c3 --- /dev/null +++ b/swat/scripting/test.esp @@ -0,0 +1,6 @@ +<h3>A esp include file</h3> +<% + function testfn(test) { + return "the argument was " + test; + } +%> |