Simulating Tag Syntax with Razor Templating

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):

  • Self-closing: <cf_form_field label="Some Label" value="The value" />
  • Nested: <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”

Previous Posts

Previous to starting this blog I was posting on a blog I started with my job at Curtin University. As you will see if you look at the blog, I got VERY busy towards the middle / end of 2010 so there is a big gap in blog posts after I started.

The following posts were my favourite:
Continue reading “Previous Posts”