views:

44

answers:

1

I working on a small page content manager. I would like to create some variables like @contact@ that an user can add within some pages. the @contact@ is a userControl (a contact form). All the pages are stored as txt files.

My question is : Is it possible to "translate" the @contact@ variable into the userControl when I "display" the txt file ?

A: 

Take a look at NVelocity. It's an open source template engine that does what you want to do. Check this answer as an example.

Canavar
You probably want a link to the Castle fork- http://www.castleproject.org/others/nvelocity/index.html
RichardOD