karajlug template ported to rails. (most of it)
Templated improved