« Return to Thread: RHTML comments

Re: RHTML comments

by Bugzilla from gethemant@gmail.com :: Rate this Message:

Reply to Author | View in Thread

On 8/3/07, James Moore <jamesthepiper@...> wrote:
> Given:
>
> <%
> a = :snark
> b = 2
> %>
>

thats considered ugly and not advisable in ruby/rails world i suppose.

> I'd expect the result to be:
>
> <%
> # a = :snark
> # b = 2
> %>
>
> For a one-liner (or N consecutive one-liners), it'd be what's been
> mentioned before:
>
> <% a = :snark %>
> <% b = 2 %>
>
> <%# a = :snark %>
> <%# b = 2 %>
>
> The if-false block seems like a different operation than "comment this region."
>
>  - James Moore
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>
>


--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://blog.gnufied.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


 « Return to Thread: RHTML comments