padrino/padrino-framework — Issue #777: link_to with block in slim doesn't seem to work
Author: simonc
Created: 2012-02-05 21:18:06+00:00
State: open

I am using slim as my template syntax and using a block with the `link_to` helper doesn't work.

My test is like this:

``` slim
== link_to("/") do
span Hello
```

It doesn't print anything.

I digged into the code and traced it back to `SlimHandler.concat_to_template`:

``` ruby
def concat_to_template(text="")
self.output_buffer << text if is_type? && text
nil
end
```

It doesn't come from the condition, I commented it and it didn't change anything.