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

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -