Bug fix for template option support

I missed adding the options to the layout template function,
meaning that any options currently do not work on layout templates
Merge pull request #18 from ErisDS/layout-options-fix

Bug fix for template option support