template complete
I just finished work on what will more or less be the replacement for the last incarnation of the "kludgeroo" notizen module.
This module represents the completion of a new milestone. A long, long time ago, I mentioned that the next milestone would be the implementation of a userland template system. Well, this is pretty close. The template works great, but it is not yet a userland template system. Right now, it is a developer template system. I'm ok with that.
:)
Important Concepts About Templates
- One piece of code is used to format repeatable data.
- Each data object may have a template representation.
Some thoughts:
An XML style template may be ideal for the following reasons:- Data object boundries are clearly defined with a start tag and an end tag
- et al
A possible example of an XML template
Let's say that the data type name is "MOURNAL" (Mind Journal). In our case, this is also the module name in your project, but it could also be the name of the table in which this data is stored ...<html>
<head></head>
<body>
<h1>Welcome to my webpage!</h1>
<page name='homepage'>
<h2>You are looking at my Homepage</h2>
<mod name='mournal'>
FANCY HTML FOR THE TITLE OF THE MOURNAL
(constant information that does not change with each entry)
<foreach>
<div name='mournal_entry'>
ALL OF MY FANCY HTML FOREACH MOURNAL ENTRY
</div>
</foreach>
</mod>
</page>
<page name='pictures'>
<mod name='photogallery'>
<foreach>
<div name='mournal_entry'>
ALL OF MY FANCY HTML FOREACH PICTURE
</div>
</foreach>
</mod>
</page>
</body>
</html>
That's it.
Project Base Name Change
Gone Asumder, Gone ASUNDER too ...
Divided Into Three Parts
New Design
Version 0.3 is online
I am happy to announce that the latest version of the journal module is online and producing nice, clean content. The most noteworthy inclusion with this release is the XML template system. This allows all posted content to be quickly transformed to any document convention. Consequently, I am totally stoked.
To commemorate the occasion, I have renamed the Journal section to the flashier title, Notizen. The word notizen, of course, is not so flashy to speakers of German.