Search code examples
c#asp.net-3.5

Custom Tag in HTMl


I want a shopify like functionality in my app which I am developing. Shopify template engine support this syntax in theme files.

<ul id="blogs">
  {% for article in blogs.frontpage.articles limit: 3 %}
  <li><a href="{{ article.url }}">{{ article.title }}</a></li>
  {% endfor %}
</ul>

I also want this type of functionality for mine.


Solution

  • Sounds like you need a templating engine for your app. You could use an off the shelf one such as the ones recommnded here.