Skip navigation

Monthly Archives: March 2008

Apache is weird, but cool.

PHP isn’t as bad as I thought it was(its not awesome but…)

Alot of people cant code PHP that well (like 60% of people who code in php are crap at doing it, admitily PHP is a bit of a hack language).

Globulation2 rocks.

Uninstalling still needs to be worked on a bit.

Ubuntu should update the Mono binary in its repository to version 1.9

Ubuntu online help is pretty awesome

Nano is soooooo much better than vim (*runs for cover* :D)

If people changed the ServerSignature property to off in their apache2.conf files, that would make the world a bit more secure

Now then, back to Windows as my main OS!

Disclamer: I am a Linux n00b and things I say should not really hold much weight (In relation to Linux anyway!)

Tuyware’s xGeneration BETA

Blogged with Flock

So I am building [what I think will be] a kick ass Templating engine / programing language for anything (well sort off), called Templ.

So far I have added the ability for templates to include functions (Via use of Funt<T, TReturn>), loops and variables, for example heres a template from my test folder:

Hi [[yourname]]

heres the numbers between 1 and 100
[[numbers:1,100]]

<<20>>
Im a map
<<endl>>

[[yourname]] represents a variable called yourname
[[numbers:1,100]] represents a function called numbers with the parameter 1,100 (in Templ, everything is a string)

<<20>> represents the start of a loop that will iterate 20 times
<<endl>> represents the end of the  loop, anything between this and the start of the loop will be repeated 20 times

As you can tell, It isn’t exactly a templating engine, it’s more of a template parser/ programming language.

In the code that processes Templ, you declare variables with the following
Templ.Variables.add(varname, varvalue)

To delare a function you use the following
Templ.Function.add(functionname,function)

I am hoping you managed to get that, it is not as confusing as it seems when I explain it.

Now, here is the part where I need some feedback. As I am going to Open Source Templ, Is there anything that you would like to see in this (other than me hitting the delete key on the project :P)?

Blogged with Flock

Tags: , ,