Gem template with rack application