# Tutorial - Writing a Template Handler

**URL:** <https://www.ruby-forum.com/t/tutorial-writing-a-template-handler/81786>\
**Category:** Rails\
**Created:** [January 14, 2007, 9:10am UTC](https://www.ruby-forum.com/t/tutorial-writing-a-template-handler/81786 "2007-01-14T09:10:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![squeegy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Post date:** [January 14, 2007, 9:10am UTC](https://www.ruby-forum.com/t/tutorial-writing-a-template-handler/81786/1 "2007-01-14T09:10:47Z")

</div>

Greetings railers,

I have just posted a tutorial on my blog about writing your own template  
handling plugins. It takes you through creating a template handler that  
renders a hash in a view file, as an HTML table.

Perhaps a silly example, but it gets the point across simply.

[http://beautifulpixel.com/articles/2007/01/11/write-your-own-template-handler](http://beautifulpixel.com/articles/2007/01/11/write-your-own-template-handler)

I wrote this because I was searching for info on template handlers  
before I wrote the .flexi handler for FlexImage and, sadly, I found  
nothing. I had to resort to reverse engineering other template plugins.

Hope it helps someone.

Happy Template Handling!
