-
LAST, NEXT and REDO are requested, so they will be added in a future.
-
input:
use strict;
use warnings;
use utf8;
use Text::Xslate;
my $xslate = Text::Xslate->new(
syntax => 'TTerse',
);
$xslate->render_string('[% IF others.size() > 0 %][% END %]', {…
-
Error happened in Text::Xslate::Parser split() when Xslate is working under Corona (PSGI Server).
https://gist.github.com/819778
cho45 updated
13 years ago
-
```
use Test::More;
use Text::Xslate;
my $tx = Text::Xslate->new(
syntax => 'TTerse',
function => {
return_array => sub { my @array = ('A'..'Z') },
},
);
my $r = $tx->render_st…
-
I would like to create some tag helpers for use in templates, e.g. creating a text_field, I use
40, maxlength => 33) %>
It works already quite well.
The problem is that I have to recreate the c…
-
Functions and filters
: f(1, 2, 3) # with args
works fine
however, putting html_builder around the function, only the first arg will be passed to the function
e.g.
```
my $text_field = sub {
my …
-
```
$ xslate --syntax=TTerse -e 'Hello, [%- $ARGV[0] -%] world!' Xslate
```
Hello, Xslate world!
But it should be:
Hello,Xslateworld!
-
Hi, This is a wishlist, unimportant.
I want the option to disable "line_start" because It may carelessly mixed into the template.
for example:
```
my $tx = Text::Xslate->new(line_start => undef); # …
-
```
#!perl
use common::sense;
use Text::Xslate();
my $tx = Text::Xslate->new(
syntax => 'TTerse',
path => {
wrap_begin => '[% WRAPPER "base" %]',
wrap_end => '[% END %]',
…
-
This triggers a warning and infinite loop:
xslate --syntax=TTerse -e '[% 1 + 1 %%]' Xslate
But adding a single space after the closing bracket causes the expected parse error:
xslate --syntax=…