Releases: Talesoft/tale-jade
Releases · Talesoft/tale-jade
Added expression support in interpolation
Merge pull request #39 from Talesoft/dev-master Updated files to reflect version 1.3.3
Some major bugfixes
Some major bugs have been fixed in this release. Please update.
Space-separated attribute support
Attributes can now be separated with spaces
a(href='google.de' target='_blank')
It's also possible to mix separators
a(href='google.de' target='_blank', title='Some link title')
Added basic pre-processor support
Tale Jade now has inbuilt support for common pre-processors
You can either use them by using the filter-construct
:less
p {
&.red { color: red; }
&.blue { color: blue; }
}
or by using import
and import-filters or filter-mapping
//Will automatically set the filter to "less"
include my-less-file.less
//or
//will include my-less-file.less automatically
include:less my-less-file
The following pre-processors are now supported:
Markdown
Required Composer Package
Filters
:markdown
or :md
Extensions
.md
CoffeeScript
Required Composer Package
Filters
:coffeescript
or :coffee
Extensions
.coffee
LESS
Required Composer Package
Filters
:less
Extensions
.less
Stylus
Required Composer Package
Filters
:stylus
or :styl
Extensions
.styl
SASS/SCSS
Required Composer Package
Filters
:sass
Extensions
.sass
or .scss
Improved PHP Expression parsing
- Improved PHP-expression parsing
$columns(subArray=['some-sub-array' => 'some-value'])
will now correctly parse to
<?php $columns = ['subArray' => ['some-sub-array' => 'some-value']]; ?>
null
,false
andtrue
scalars are now correctly handled and converted to the PHP boolean/null equivalent- Added the possibility to single-line-comment inside attribute-blocks
(It actually compiles to something more useful, check the PHTML output, but this is what it essentially is for)
div(
data-abc='abc',
//data-omitted='this is omitted for now',
data-def='def'
)
For-Loops and Variable-Assignments
For-Loops are now supported
for $i = 0; $i < 100; $i++
p We are at #{$i}, counting to 100!
Variables can now be directly assigned
$i = 100
p Here is my new i: #{$i}
$array(key1=value1, key2=value2, key3=value3)
$inner = ['a', 'b', 'c']
$outer(inner=$inner, 'd', 'e', 'f)
Code-handling improvements!
dash
-code is now acode
-node and token, notexpression
anymore. Expressions stay as they are- Removed the possibility to have expressions on multiple lines
- Added the possibility to do this:
- for ($i = 0; $i < 100; $i++):
p #{$i}
- endfor;
Tale Jade 1.1
- compiler-option is now compilerOptions
- parser-option is now parserOptions
- lexer-option is now lexerOptions
- paths and pretty options can be given to the Renderer directly
- Website online
- API Docs online
Tale Jade 1.0.3
- Fully documented
- Many minor bugs fixed (There are no major bugs right now)
- Tested well
- Used in many projects right now
Tale Jade 1.0
The first release of the Tale Jade project.
Many things have been tested correctly, some things may still provide bugs.
We'll see how it works out.