tdreyno/middleman — Issue #146: Getting middleman to ignore ASPX header code in template
Author: lsdafjklsd
Created: 2011-10-27 15:20:39+00:00
State: open

I am overhauling an old .net site that is precompiled and I can not create new master pages. I am using middleman to let me use templates etc.

I am working like the php examples before, generating ASPX files. But I need to be able to have the standard .net page tags:

"
<%@ page language="VB" autoeventwireup="false" inherits="Login, App_Web_login.aspx.cdcab7d2" %>
<%@ Register Assembly="LanguageBroker" Namespace="BeehiveMedia.LanguageBroker" TagPrefix="cc1" %>
"
at the top of the page template. Id like to also make the inherits part a variable that gets fed in from the view.

Obviously this throws an error in development. I don't need it to do anything in development, how do I get it middleman to completely ignore these two lines? I tried commenting out everything before and after the inherits but it was still detecting it.

Thanks in advance.