Tale Jade v1.4.0 Release Notes

Release Date: 2016-02-03 // about 8 years ago
  • โž• Added the ?-instruction ("unchecked"-operator)

    Disables automatic isset()-checks on variables for certain cases (e.g. objects with __get, but without __ isset)

    Usage:

    p?= $someVar
    a(href?=$someVar)

    It can be combined with the !-escaping-instruction

    p?!= $someVar
    a(href?!=$someVar)

    โž• Added !-instruction on texts to enable escaping

    Sometimes you want to escape text, e.g. when you want to display the HTML, not let it render
    ๐Ÿ›  For that all text-elements can now be prefixed with ! to enable escaping.

    ๐Ÿ‘ Escaped texts will still support interpolation.

    Usage

    h1 My example code pre: code!. \<?php $someVar = 123; echo $someVar; ?\>
    

    p! This HTML <em>here</em> will be escaped

    p !| This text will also be escaped
    
    • ๐Ÿ‘Œ Improved variable detection. Variables like $someVar["some, weird$9 key"] will also be automatically enclosed in the isset-check now
    • ๐Ÿ›  Fixed a bug with a trailing semicolon in variadics (#61)
    • โšก๏ธ Updated README-file to reflect latest config changes