[fpc-pascal] The best approaching for templating
luciano de souza
luchyanus at gmail.com
Mon Nov 7 14:37:46 CET 2011
Hello listers,
I would like to create some templates. Suppose the following example:
<html>
<head>
<title>%s</title>
</head>
<body>
%s <p>
%s <p>
%s <p>
</body>
</html>
I can certainly use format to link %s to the respective variables.
However, if the number of %s is big, probabily, the reading would be
less clearer.
But, suppose I have $title in stead of %s and $p1 in stead of %s. In
Lua, I have a module called Cosmo taht perform it.
my question is: is there something similar in Pascal?
Luciano
More information about the fpc-pascal
mailing list