diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-05-09 15:54:55 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-05-09 15:54:55 +0000 |
commit | 509cb63a9c2f7807a186b19f33af8adc56ee1c82 (patch) | |
tree | d25881f67957ee37e66ded6bbd3f1cb608a2094e /app/template-html.lsp | |
parent | acd1228fe832030822c2d551332dc5d6b310ec91 (diff) | |
download | acf-core-509cb63a9c2f7807a186b19f33af8adc56ee1c82.tar.bz2 acf-core-509cb63a9c2f7807a186b19f33af8adc56ee1c82.tar.xz |
Added support for components to acf_www-controller.
Now views can load sub-views (components) using a function in the view library (which is now passed to each view). Based on Ruby on Rails components.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1115 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/template-html.lsp')
-rw-r--r-- | app/template-html.lsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/template-html.lsp b/app/template-html.lsp index cbb5c29..1c61f46 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -1,4 +1,4 @@ -<? local pageinfo , viewtable, session = ... +<? local pageinfo , viewtable, session, viewlibrary = ... html=require("html") ?> Status: 200 OK Content-Type: text/html @@ -121,7 +121,7 @@ Content-Type: text/html </div> <? local func = haserl.loadfile(pageinfo.viewfile) ?> - <? func (viewtable) ?> + <? func (viewtable, viewlibrary) ?> <div class="tailer"> </div> |