When using a templating language to output HTML it’s often quite useful and natural to have the concept of a “tag” syntax e.g. (using some random custom ColdFusion tags as an example):
<cf_form_field label="Some Label" value="The value" />
<cf_form_section heading="Some heading"> ... </cf_form_section>
The tags would implicitly output to the page and can be side-by-side with HTML code without needing start and end code delimiters (such as <% … %> or <? … ?>, etc.).
Continue reading “Simulating Tag Syntax with Razor Templating”