# Insert Variables into

**URL:** <https://www.ruby-forum.com/t/insert-variables-into/165842>\
**Category:** Rails\
**Created:** [April 18, 2009, 2:57am UTC](https://www.ruby-forum.com/t/insert-variables-into/165842 "2009-04-18T02:57:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvanovert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e56c9b/32.png) [@pvanovert](https://www.ruby-forum.com/u/pvanovert)\
**Post date:** [April 18, 2009, 2:57am UTC](https://www.ruby-forum.com/t/insert-variables-into/165842/1 "2009-04-18T02:57:49Z")

</div>

Hello,

I wrote a small application for a temporary employment company so that  
they can insert the timestamps and also note the companies for which  
their employees are currently working. Because it is a web app the  
application is usable from the field and also from the office  
locations.

The contracts have been created by using a very old and unmaintained  
software that allowed them to fill a template with the correct fields.  
I was asked if I would be able to move the task of writing the  
contracts to the rails application I programmed.

What I need is a system that allows me to define various text  
templates. And later use those templates and combine them with the  
employee data to produce a correct contract.

After googling around I found out that I can produce nicely formatted  
PDFs using ruby. But does there exist something that allows me to  
create templates? I was not able to find such a plugin

thanks in Advance for your assistance  
Paul
