in reply to Re^3: Generation of dynamically-static documents
in thread Generation of dynamically-static documents
I'm trying to figure out how ttree or TT2Site is going to figure out what code to run as part of each template. For example, one page is a list of officers in the group. So, I need to query the officers "table" via DBD::CSV, ordered by a certain value. Another page is a list of activities, grouped by month. So I need to query the activities "table", ordered and grouped - and I need to figure out the current date and only get the activities in the current "activity year" (related to the school year - starts in September). Another page is a list of these activities with descriptions and the person who runs them, which is sometimes tied to the officers. So here's a query against a couple of tables.
These queries are already done, and they work. I just need to tie them in to the templates and either generate them statically or dynamically, depending on context. And I figured that with perl's great use of context, this would be a perfect fit ... somewhere. ;-)
And putting code of any sort into the template wasn't exactly what I was hoping for.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Generation of dynamically-static documents
by CountZero (Bishop) on Sep 12, 2005 at 22:41 UTC | |
by adrianh (Chancellor) on Sep 13, 2005 at 08:03 UTC | |
by CountZero (Bishop) on Sep 13, 2005 at 15:13 UTC | |
by adrianh (Chancellor) on Sep 14, 2005 at 16:42 UTC | |
|
Re^5: Generation of dynamically-static documents
by adrianh (Chancellor) on Sep 13, 2005 at 08:05 UTC |