Does anyone know if it's possible to read Page Template Metadata from within a Razor TBB? I'm implementing a design that's been built using the 960 grid system and to keep my CT's reusable I was hoping to be able to do something like:
<div class="@Page.Template.Metadata.content_grid">
</div>
Unfortunately this throws a null reference exception.
Is what I'm attempting possible or do I need to write a custom TBB to add this information to the package?
After heading over to Alex's blog to ask the question, I see that he's already answered it for someone else: