[ANN] Ember 0.1.0

S

Suraj Kurapati

Ember

eRuby template processor

http://snk.tuxfamily.org/lib/ember/

Ember (EMBEdded Ruby) is an [1]eRuby template processor that
enables debugging, reduces markup, and improves composability
of eRuby templates.

* It reports correct line numbers in error message stack
traces.

* It can infer <% end %> based on indentation.

* It can unindent block content hierarchically.

* It completely silences code-only eRuby directives.

* It is implemented in 364 lines of pure Ruby.

Version 0.1.0 (2010-04-03)

This release improves the handling of eRuby comment
directives, fixes a bug in the <% end %> inference logic, and
performs some minor housekeeping.

New features

* Single-line comment directives are now ignored (treated
like no-ops) in input templates. This allows us to
surround eRuby block directives with section separators
made from single-line comment directives:

%#-------------------------------------------------------
%|some_block_directive

Inside some_block_directive.

%#-------------------------------------------------------

Still inside some_block_directive!

%#-----------------------------------------------------
%| nested_block_directive
%#-----------------------------------------------------

Inside nested_block_directive.

%#-------------------------------------------------------

Bug fixes

* <% end %> inference did not work for blocks beginning
with def, class, and module keywords.

Housekeeping

* Upgrade to Inochi 2.0.0-rc3. This project no longer
depends on the "inochi" or "trollop" gems at runtime.

References

1. http://en.wikipedia.org/wiki/ERuby
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

[ANN] Ember 0.3.1 0
[ANN] Ember 0.1.1 0
[ANN] Ember 0.3.0 0
[ANN] ERBook 7.3.0 0
[ANN] ERBook 7.2.0 0
[ANN] ERBook 6.0.0 0
[ANN] Inochi 0.1.0 0
[ANN] ERBook 9.2.0 0

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top