asp.net mvc - Razor - How do I output the current cshtml filename -
for debugging purposes, output html comment indicating filename of current cshtml file @ beginning , end of every cshtml file.
for example, i'd when view source of generated webpage, see this:
<!-- begin _layout.cshtml --> ... headings , such ... <!-- begin about.cshtml --> ... generated content about.cshtml ... <!-- end about.cshtml --> ... footers , such ... <!-- end _layout.cshtml -->
i'm new platform, i'm not sure right terminology this, let alone in api look. i'm hoping @ least can edit of cshtml files , reference object @ runtime contains filename property, in syntax similar to:
<!-- begin @object.optionalproperty.optionalsubproperty.filename -->
or, alternatively, way modify rendering engine automatically @ beginning , end of every rendered file.
thank time , responses.
Comments
Post a Comment