Skip to content

Releases: Talesoft/tale-jade

Added expression support in interpolation

06 Jan 15:42
Compare
Choose a tag to compare
Merge pull request #39 from Talesoft/dev-master

Updated files to reflect version 1.3.3

Some major bugfixes

05 Jan 21:25
Compare
Choose a tag to compare

Some major bugs have been fixed in this release. Please update.

Space-separated attribute support

05 Jan 12:22
Compare
Choose a tag to compare

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

11 Nov 17:21
Compare
Choose a tag to compare

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

erusev/parsedown

Filters

:markdown or :md

Extensions

.md

CoffeeScript

Required Composer Package

coffeescript/coffeescript

Filters

:coffeescript or :coffee

Extensions

.coffee

LESS

Required Composer Package

leafo/lessphp

Filters

:less

Extensions

.less

Stylus

Required Composer Package

neemzy/stylus

Filters

:stylus or :styl

Extensions

.styl

SASS/SCSS

Required Composer Package

leafo/scssphp

Filters

:sass

Extensions

.sass or .scss

Improved PHP Expression parsing

09 Nov 16:31
Compare
Choose a tag to compare
  • 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 and true 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

06 Nov 16:59
Compare
Choose a tag to compare

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!

05 Nov 17:35
Compare
Choose a tag to compare
  • dash-code is now a code-node and token, not expression 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

10 Oct 12:01
Compare
Choose a tag to compare
  • 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

09 Oct 11:20
Compare
Choose a tag to compare
  • 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

06 Oct 11:53
Compare
Choose a tag to compare

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.