i'm still a noob and had the need for a simple template system and thot
it would be a nice learning experience. all i want to do is replace
{{VALUES}}
with the hash value of the same name eg hValues[VALUES]. So i thot well
this probably aint easy and i sat down and came up with this
@value.gsub!(/(\{\{(.+)\}\})/) {
@values[$2]
}
...and was simply astonished to see that's all i needed for the 'real
work' of this template- so i just wanted to say,/ man how cool is that/!!
thanks matz, noobie me