Questions tagged [text-xslate]

Text::Xlsate is a fast, flexible and, highly extensible template processing system for Perl, similar to Template Toolkit.

4 questions
10
votes
0 answers

Filtering content in Text::Xslate

In Mason i could define a filter: <%filter Div($class)>
<% $yield->() %>
And later i could use it % $.Div("row") {{ 1 The "$yield->()" method returns everything from…
cajwine
  • 3,100
  • 1
  • 20
  • 41
7
votes
1 answer

Get WRAPPER functionality from Template::Toolkit in Text::Xslate

I've used Template::Toolkit for my last few Catalyst projects and have a set up that I like using that allows a clean separation of my templates. Now I'm hoping to use Text::Xslate, but I'm having trouble figuring out if I can do my same setup or…
srchulo
  • 5,143
  • 4
  • 43
  • 72
5
votes
1 answer

How to cascade included templates in Text::Xslate?

In Text::Xslate is great way to cascade (or wrap, in some other templating engine) specific template into main template. There is also possible to include common chunks into template. I'd like to include chunks into specific template which cascades…
w.k
  • 8,218
  • 4
  • 32
  • 55
2
votes
0 answers

Text::Xslate returning incorrect value for function call

I'm using Text::Xslate with HTML::FormHandler (HTML::FormHandler is actually used behind the scenes by CatalystX::SimpleLogin, in case that helps). I'm using Text::Xslate's TTerse syntax and trying to show the errors in my template like so: [% FOR…
srchulo
  • 5,143
  • 4
  • 43
  • 72