I'm trying to create a print template that lacks all the stuff of a normal template for both on-screen display and printed output. I'm not sure whether this is possible with Knop using the method I attempt as follows.
In the Knop demo file /index.lasso, there is a comment:
// Page output begins here, so from here on we could use a template include for better separation of logic and presentation
However when I attempt to include a file from within /index.lasso, I receive an Apache 404 file not found error. Here is the code snippet:
select($rfp); // $rfp == response_filepath declared in cfg__global.inc case('/print_template'); include('print_template.lasso'); case; ]...default html template...[/select]
I know I could put a bunch of case statements within the HTML itself, but that just gets ugly. I'm not sure how to implement templates or troubleshoot this. Any hints appreciated.
--steve
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@StevePiercy.com> <http://www.StevePiercy.com/>
-- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
Oct 18
Steve Piercy - Web Site Builder Re: Templating
Oct 18, 2009; 19:29
Steve Piercy - Web Site Builder
Re: Templating
Oct 19
Johan Solve Re: Templating
Oct 19, 2009; 09:09
Johan Solve
Re: Templating
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!