File rubygem-slim.changes of Package rubygem-slim.1380
-------------------------------------------------------------------
Mon Nov 3 10:05:00 UTC 2014 - tboerger@suse.com
- Added last missing bits for new macros
-------------------------------------------------------------------
Mon Oct 13 06:50:34 UTC 2014 - adrian@suse.de
- adapt to new rubygem packaging style
-------------------------------------------------------------------
Thu Oct 31 05:54:37 UTC 2013 - coolo@suse.com
- updated to version 2.0.2
* Add option :attr_delims
-------------------------------------------------------------------
Wed Jul 31 05:45:59 UTC 2013 - coolo@suse.com
- updated to version 2.0.1
* Support multiple attributes per shortcut (See issue #415)
* Add support for org-ruby embedded engine
* Render true boolean attributes with empty value
* Support case-when statements
* Fix issue #431
* Also escape ' to '
2.0.0
* IMPORTANT: Backward incompatible syntax change: '{...}' and '[...]' are not
allowed as ruby attribute wrappers anymore. Use parentheses '(...)'
if you want to wrap code with spaces. This allows to write arrays and hashes directly.
Old:
div id={'obj' + name} data=({:a => 1, :b => 2}) class=['alpha', 'beta']
New:
div id=('obj' + name) data={:a => 1, :b => 2} class=['alpha', 'beta']
* Quoted attributes are escaped by default
Old:
a href='http://slim-lang.com/?a=1&b=2'
New:
a href='http://slim-lang.com/?a=1&b=2'
a href=='http://slim-lang.com/?a=1&b=2'
You can always disable escaping completly by using :disable_escape if you don't want to write '=='.
* Added hyphenation support for data attributes (Option :hyphen_attrs)
Example: div data={key1_key2: 2, key1: {key3: 3}} will render as '<div data-key1-key2="2" data-key1-key3="3"></div>'
* Removed deprecated options:
- :escape_quoted_attrs
- :remove_empty_attrs
- :chain
- :attr_wrapper (renamed to :attr_quote)
- :attr_delimiter (renamed to :merge_attrs)
- Slim::LogicLess :wrapped dictionary
- Slim::Parser :shortcut string option
* Allow spaces around attributes, e.g 'a [ href = url ] text' and 'a href = url text'
* Add unicode support for tags and attributes (Issue #212)
* Generate missing `do` keywords for code blocks (see #342)
* Logic-less: Add keyword `self` for string access
* Added Slim::ERBConverter, require 'slim/erb_converter'
* Added option '-e' for ERB conversion to slimrb
* Add syntax for trailing or leading whitespace after tag, e.g. input>, input<
* Add syntax for trailing or leading whitespace after output, e.g. =>, =<
-------------------------------------------------------------------
Fri Apr 12 09:20:09 UTC 2013 - coolo@suse.com
- updated to version 1.3.8
* Disable some superflous deprecation warnings
* Fixed issue #374, rescue and ensure blocks
* Fixed issue #333 (Throw syntax error if you write text after closed tag)
* Deprecated :attr_delimiter (renamed to :merge_attrs)
* Deprecated :attr_wrapper (renamed to :attr_quote)
* Warn if you use curly braces or brackets for ruby attributes since
curly braces and brackets will be interpreted as Hash/Array in Slim 2.0.0
Old syntax:
div id={person && person.id}
div id=[person && person.id]
New syntax in 2.0.0:
div id=(person && person.id)
* Deprecated :escape_quoted_attrs (done by default in 2.0)
* Warn if quoted attributes might be double escaped in Slim 2.0.0
Old syntax:
a href='http://slim-lang.com/?a=1&b=2'
a href=='http://slim-lang.com/?a=1&b=2'
New syntax in 2.0.0:
a href='http://slim-lang.com/?a=1&b=2'
a href=='http://slim-lang.com/?a=1&b=2'
* Improved pretty printing (Issue #202)
* Renamed Slim::EmbeddedEngine to Slim::Embedded (Old constant still available until 2.0)
* Renamed Slim::ControlStructures to Slim::Controls
* Tab expansion improved (tab + space is interpreted as equivalent to tab)
* Support for wrapping javascript in HTML comments or CDATA (Issue #340)
-------------------------------------------------------------------
Sun Mar 3 09:28:35 UTC 2013 - coolo@suse.com
- initial package (version 1.3.6)