Skip to content

2016-01-06 - Stable version

Compare
Choose a tag to compare
@goetas goetas released this 06 Jan 18:35
· 56 commits to master since this release

Twital goes stable! 1.0.0 is out!

Included:

  • Twig 2.0 support
  • Parent and child templates are fully XHTML compatible. Added t:block-inner and t:block-outer, and t:extends attributes to be used instead of t:block and t:extends nodes (#39)
  • Documented t:content and added `t:replace ( #43)
  • Proper handling of HTML boolean attributes (#42)

Migration

1.0.0 is almost fully compatible with the 0.x branch, no "real" issues are expected.

The only issue can be with XML templates:

On order to obtain:

<div class="1">
 blah
</div> 

Before:

<div t:attr="class=true">
 blah
</div>

<!-- or -->
<div t:attr="class=1">
 blah
</div> 

<!-- or -->
<div t:attr="class='1'">
   blah
</div> 

After:

<!-- after -->
<div t:attr="class=1">
  blah
</div> 

<!-- or -->
<div t:attr="class='1'">
 blah
</div>