ukigumo / Ukigumo-Server

This is a ukigumo server application.
http://ukigumo.github.io/Ukigumo-Server/
Other
30 stars 10 forks source link

Drop Text::Xslate::Bridge::TT2Like and use Bridge::Star? #19

Closed tokuhirom closed 11 years ago

tokuhirom commented 11 years ago

I don't like Bridge::TT2Like now.

Songmu commented 11 years ago

Dropping Text::Xslate::Bridge::TT2Like seems no problem. It is oridinaly specified and I never used it.

Bridge::Star is already specified and 'lc' function is used in 'share/tmpl/show_report.tt'.

Songmu commented 11 years ago

I try to remove Text::Xslate::Bridge::TT2Like, but this warnings message is occur.

t/api-post.t ....... 1/? Text::Xslate: Undefined function html_line_break() is called on function call (/Users/Songmu/dev/github/Ukigumo-Server/share/tmpl/show_report.tt:12) at /Users/Songmu/dev/github/Ukigumo-Server/lib/Ukigumo/Server/Web/Dispatcher.pm line 164.
----------------------------------------------------------------------------
        [% IF report.vc_log %]
        <div>[% report.vc_log | html | html_line_break %]</div>
        <hr />
----------------------------------------------------------------------------

Alternative function of html_line_break is needed.

tokuhirom commented 11 years ago

You can use <pre> tag, you know.

Songmu commented 11 years ago

done.