Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Activity (RSS)

Wednesday, September 16 2009
20 r:ruby or something was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 1:12 PM

    Solve this problem:

     $[page = page_for_html_block(r)]$page.name at $r.name.
    

    perhaps like this

    $page.name at $r.name.
    
Tuesday, September 08 2009
17 $a$b$c should work, instead of requiring ${a}${b}${c} was updated
  • Nicholas Faiz
    • State changed from new to resolved
    by Nicholas Faiz at 5:46 PM

    Closing this, it works.

Monday, September 07 2009
19 interpreting %Q!"${@foo}"! borks was updated
  • Nicholas Faiz
    Nicholas Faiz commented at 5:19 PM

    Same problem, but a better example of what I have to work out:

    $@annotation.nil? borks
    
Monday, August 24 2009
19 interpreting %Q!"${@foo}"! borks was updated
  • Nicholas Faiz
    • State changed from new to resolved
    by Nicholas Faiz at 9:07 PM

    Fixed i 0.1.7

  • Nicholas Faiz
    Nicholas Faiz created the ticket at 7:03 PM

    instead of outputting @foo it outputs

    expected "\"hello world\""
         got ");@output_buffer.concat((@foo).to_s);@output_buffer.concat("
    

    where @foo = "hello wo...

Wednesday, August 12 2009
18 r:for might as well be :for was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 3:21 AM

    Consider dropping the prefixed 'r' in the attribute expression. A colon is enough to introduce the syntax and it resembles a ruby symbol.

Monday, August 10 2009
17 $a$b$c should work, instead of requiring ${a}${b}${c} was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 3:21 PM

    Pretty obvious - for the single $ you need to scan for the end of the word using a number of delimiters - $, punctuation marks, etc..

Sunday, August 02 2009
16 html entities are escaped, but should be transformed was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 5:26 PM

    For example, a string containing (whitespace) is escaped into 
 to render the original characters in the html document. HAML substitutes a whitespace. I s...

Thursday, July 30 2009
15 integrate with sinatra was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 7:28 PM

    Probably create a separate gem - renshi-sinatra - which monkey patches Sinatra::Base::Templates

Tuesday, July 28 2009
3 implement r:def was updated
  • Nicholas Faiz
    • State changed from invalid to open
    by Nicholas Faiz at 6:18 PM

    Opening this again as it will be helpful in other frameworks which don't have rails helpers.

Sunday, July 12 2009
14 Improve rdoc and throw it up at rubyforge was created
7 refactor the excessive monkey patching on Nokogiri::Node was updated
  • Nicholas Faiz
    • State changed from new to invalid
    by Nicholas Faiz at 7:55 PM

    Yes, it looks reasonable now.

1 implement r:else was updated
  • Nicholas Faiz
    • Assigned user set to Nicholas Faiz
    • State changed from new to resolved
    by Nicholas Faiz at 7:55 PM

    DOne.

3 implement r:def was updated
  • Nicholas Faiz
    • Assigned user set to Nicholas Faiz
    • State changed from new to invalid
    by Nicholas Faiz at 7:54 PM

    Not needed in the ruby world (a helper can be just as effective).

13 $$ and $() failing in parser was updated
  • Nicholas Faiz
    • State changed from new to resolved
    by Nicholas Faiz at 7:11 PM

    Fixed.

  • Nicholas Faiz
    Nicholas Faiz created the ticket at 7:11 PM

    $$ is escaped renshi for '$'

    Renshi should ignore $().

Thursday, July 09 2009
12 hook renshi up to a CI was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 11:00 PM

    The rails integration broke without my noticing it.

Wednesday, July 08 2009
11 Fix whitespacing issues was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 7:47 PM

    When transforming lines of code in $[] lines of whitespace are left. Destroy them.

    When looping in 'while' and 'for' attr expressions, the next iteration output...

8 inserting xml entities as strings into the nokogiri document goes bam was updated
  • Nicholas Faiz
    • State changed from new to resolved
    by Nicholas Faiz at 7:46 PM

    Done - < and > and & are encoded (see parser). No need for the others - '. ".

7 refactor the excessive monkey patching on Nokogiri::Node was updated
  • Nicholas Faiz
    Nicholas Faiz commented at 6:50 PM

    Perhaps no longer needed (the big compile method was moved to Parser).

9 $ expressions should be evaluated within attribute value text was updated
10 renshi (genshi) syntax will conflict with jquery syntax - solve was updated
  • Nicholas Faiz
    • State changed from new to resolved
    by Nicholas Faiz at 5:24 PM

    Done.

  • Nicholas Faiz
    Nicholas Faiz commented at 5:06 PM

    Actually, jquery just uses $() (I think), so this should be fine.

  • Nicholas Faiz
    Nicholas Faiz created the ticket at 4:56 PM

    Ouch - jquery uses ${}. Crap. Might have to change what renshi looks for.

Tuesday, July 07 2009
8 inserting xml entities as strings into the nokogiri document goes bam was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 11:29 PM

    Inserting a string such as 1 < 2 using before on an XML node creates an error.

    This probably applies to all XML entities. Suggested workaround is to encode them...

7 refactor the excessive monkey patching on Nokogiri::Node was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 10:40 PM

    At the moment I add a lot of helper methods on the nokogori node via a monkey patch.

    The number is growing. It'd be better to hide them in a helper object to av...

2 renshi documents should be valid xml was updated
  • Nicholas Faiz
    • State changed from new to invalid
    by Nicholas Faiz at 8:06 PM

    Renshi doesn't take this approach.

5 Match genshi's directives was updated
  • Nicholas Faiz
    • State changed from new to invalid
    by Nicholas Faiz at 8:05 PM

    I've decided to develop directives following a Ruby programmer's natural expectations, rather than mirroring Genshi.

Sunday, July 05 2009
6 Define error reporting was updated
  • Nicholas Faiz
    • State changed from new to resolved
    by Nicholas Faiz at 6:53 PM
  • Nicholas Faiz
    Nicholas Faiz commented at 6:52 PM

    No need - Rails has a built in mechanism for this (courtesy of compilable templates).

Wednesday, June 03 2009
6 Define error reporting was created
  • Nicholas Faiz
    Nicholas Faiz created the ticket at 2:21 AM

    A syntax error or the like should render the line containing the error, or the line in the vicinity. Define a strategy for this.

Tuesday, June 02 2009
4 Need to identify compilable strategy was updated
  • Nicholas Faiz
    • State changed from new to resolved
    by Nicholas Faiz at 9:30 PM
  • Nicholas Faiz
    Nicholas Faiz commented at 9:30 PM

    Done for statements and conditional expressions.

Thursday, May 28 2009
5 Match genshi's directives was created
Friday, May 22 2009
Home was edited by Nicholas Faiz in renshi at 3:54 AM
Wednesday, May 20 2009
4 Need to identify compilable strategy was updated
  • Nicholas Faiz
    Nicholas Faiz commented at 3:57 PM

    The problem with doing this, though, is that it means writing the template parser specifically for the Rails platform. I wonder how haml handles Sinatra integra...

  • Nicholas Faiz
    Nicholas Faiz commented at 3:34 PM

    For example, a haml document

    ok
    = @foo
    done
    
    - if @foo
      = Time.now
    - else
      there's no time like the present
    

    compiles to this str, which is reflected as a me...

  • Nicholas Faiz
    Nicholas Faiz created the ticket at 3:25 PM

    A good templating system needs to be compilable. The current prototype compiles the template live each time, it should be possible to improve this early on.

    Thi...

Tuesday, May 19 2009
factorypreset factorypreset was invited to renshi at 6:16 PM
3 implement r:def was created
2 renshi documents should be valid xml was created
  • factorypreset
    factorypreset created the ticket at 6:00 PM

    ie. they should have a structure not unlike the one in genshi:

      xmlns:py="http://genshi.edgewall.org/"
      lang="en">
    

    ... stuff goes here ...

1 implement r:else was created
  • factorypreset
    factorypreset created the ticket at 5:59 PM

    genshi doesn't have else, but no reason renshi can't have it.

Home was created by Nicholas Faiz in renshi at 5:57 PM