Gedcom update and mod_perl installation

LTjake on 2003-10-15T17:24:32

I've made several changes to the Gedcom app I've been constructing. The information page for each individual(example) now shows pictures, general info, any notes if available and any next of kin the database (with links to their records of course). I really need to come up with a decent naming scheme for the TMPL_VAR names used. It sucks to write a date range (date1 - date2) like so:

<!-- TMPL_IF NAME="dates" -->(
<!-- TMPL_IF NAME="BIRT" -->
   <!-- TMPL_LOOP NAME="BIRT" -->
       <!-- TMPL_IF NAME="__FIRST__" -->
           <!-- TMPL_IF NAME="DATE" --><!-- TMPL_VAR NAME="DATE" --><!-- TMPL_ELSE -->Unknown<!-- /TMPL_IF -->
       <!-- /TMPL_IF -->
   <!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->Unknown<!-- /TMPL_IF --> -
<!-- TMPL_IF NAME="DEAT" -->
   <!-- TMPL_LOOP NAME="DEAT" -->
       <!-- TMPL_IF NAME="__FIRST__" -->
           <!-- TMPL_IF NAME="DATE" --><!-- TMPL_VAR NAME="DATE" --><!-- TMPL_ELSE -->Unknown<!-- /TMPL_IF -->
       <!-- /TMPL_IF -->
   <!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->Unknown<!-- /TMPL_IF -->
)<!-- /TMPL_IF -->

Anywho, i tried to install mod_perl on that machine the other day and was having problems during make test - around 1/3 of all tests failed. I let it go for a day and went back at it eventually. Stumbling upon a thread on yahoo which recommeded installing Bundle::Apache. Of course this is to install mod_perl 1, so i had to quit out before it started to install that. However, I ran make test again and everything was peachy. I guess i missed the part in the installation guide about module prereqs... oops.


What you need

VSarkiss on 2003-10-16T19:27:46

Is a meta-template system to maintain your templates. You know, like use Template Toolkit to write HTML::Template files.

Wait, and then you can use a Perl program to write the TT2 meta-templates, and then ...

"The only computer problem that can't be solved with another layer of indirection is having too many layers of indirection." ;-)

Re:What you need

LTjake on 2003-10-16T20:00:47

Aye, I hope it never goes that way! =)

I was thinking something along the lines of a "living_dates" tag, maybe:

<!-- TMPL_IF NAME="living_dates" -->
( <!-- TMPL_VAR NAME="living_dates" --> )
<!-- /TMPL_IF -->