Show HN: New major version 3.2.0 of hmpl

1 hour ago 2

One of the most anticipated and complex versions, adding a link between the request status and the value of the tag attribute.

<div class="{{requestStatus}} class1">Text</div> {{#request src="/api/getHTML" bind="{{requestStatus}}" }}{{/request}}

result:

<div class="hmpl-status-requestStatus-200 class1">Text</div>

This functionality will allow you to create more complex and comprehensive interfaces without directly using indicators.

List of changes in this version:

  • Adding the bind property
  • Correcting syntax errors
  • Adding {{name}} values ​​to attributes
Read Entire Article