Small bit happy
It’s been a bit since I last posted. Currently I’m trying to split time between work, sleep, work, code, and sundry others.
I’ve made good progress on the simple templating code...
sub control {
- my $location = shift; #postmark data
#oh... wait I don’t think i need $location... it’s used seperately...
$state->{Title}= ‘Title($location)’;
return %{$state}; #etc
looks like $location is used, but the truth is that control() only assigns strings to %state. i’d initialy had control() modify the page, but now it’s relegated to assigning these strings.
template(); holds the form and tags.
control(); links stuff to tags in the template.
generate_content(); substitutes these strings for the tags in the template- the cool
thing is that this substitution will execute the code in the strings.
This way the good stuff will be plastered straight into the page :)
A separate package will hold the routines that either feed files into the page or creates parts of the page.
0 Comments:
Post a Comment
<< Home