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-instructionp?!= $someVar
a(href?!=$someVar)
โ Added
!
-instruction on texts to enable escapingSometimes 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 theisset
-check now - ๐ Fixed a bug with a trailing semicolon in variadics (#61)
- โก๏ธ Updated README-file to reflect latest config changes
- ๐ Improved variable detection. Variables like