/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/t/010_internals/ |
H A D | 007_compile_errs.t | 15 $tx->render_string(<<'T'); 23 $tx->render_string(<<'T'); 30 $tx->render_string(<<'T'); 37 $tx->render_string(<<'T'); 44 $tx->render_string(<<'T'); 51 $tx->render_string(<<'T'); 58 $tx->render_string(<<'T'); 65 $tx->render_string(<<'T'); 72 $tx->render_string(<<'T'); 79 $tx->render_string(<<'T'); [all …]
|
H A D | 010_line_number.t | 24 $tx->render_string($template, {one => 1, two => 2}); 72 $tx->render_string(<<'T', {data => "foo"}); 87 $tx->render_string(<<'T', {data => "foo"}); 102 $tx->render_string(<<'T', {data => "foo"}); 134 $tx->render_string(<<'T', {}); 146 $tx->render_string(<<'T', {}); 161 $tx->render_string(<<'T', {}); 177 $tx->render_string(<<'T', {}); 192 $tx->render_string(<<'T', {}); 240 is $tx->render_string(<<'T'), <<'X', '__FILE__'; [all …]
|
H A D | 019_runtime_error.t | 41 $tx->render_string("<: $code :>", { h => {'' => 'foo' }, a => [42] }); 52 $tx->render_string("<: f() :>"); 62 $tx->render_string('<: constant FOO = 42; FOO[0] :>'); 73 $tx->render_string('<: $a + $b :>', { a => 'foo', b => 'bar' }); 84 $tx->render_string('<: [].size(1) :>', { a => 'foo', b => 'bar' }); 94 $tx->render_string('<: [].foo() :>', { a => 'foo', b => 'bar' }); 106 $tx->render_string('<: $o.foo() :>', { o => bless {}, 'MyObject' }); 118 $tx->render_string('<: $o.bar :>', { o => bless {}, 'MyObject' }); 130 $tx->render_string('<: $x % 0 :>', {x => 42}); 158 $tx->render_string("<: $code :>", { h => {'' => 'foo'}, a => [42] }); [all …]
|
/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/t/100_plugin/ |
H A D | 004_star.t | 14 is $tx->render_string(': uc("foo")'), 'FOO'; 15 is $tx->render_string(': uc(nil) // "ok"'), 'ok'; 16 is $tx->render_string(': "foo".uc()'), 'FOO'; 18 is $tx->render_string(': lc("FOO")'), 'foo'; 19 is $tx->render_string(': lc(nil) // "ok"'), 'ok'; 20 is $tx->render_string(': "FOO".lc()'), 'foo'; 22 is $tx->render_string(': substr("foo", 1)'), 'oo'; 25 is $tx->render_string(': "foo".substr(1)'), 'oo'; 37 is $tx->render_string(<<'T'), 'fxx'; 41 is $tx->render_string(<<'T'), 'fxx'; [all …]
|
H A D | 003_bridge.t | 11 is $tx->render_string('<: "xx".bar() :>'), 'scalar bar'; 12 is $tx->render_string('<: [42].bar() :>'), 'array bar'; 13 is $tx->render_string('<: { }.bar() :>'), 'hash bar'; 18 is $tx->render_string('<: "xx".foo() :>'), 'scalar foo'; 19 is $tx->render_string('<: [42].foo() :>'), 'array foo'; 20 is $tx->render_string('<: { }.foo() :>'), 'hash foo'; 21 is $tx->render_string('<: "foo" | foo :>'), 'func foo'; 22 is $tx->render_string('<: [].size() :>'), '42'; 48 is $tx->render_string('<: [].foo() :>'), 'array foo'; 49 is $tx->render_string('<: [].size() :>'), '0';
|
/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/t/030_kolon/ |
H A D | 038_custom_esc.t | 49 is $tx->render_string(q{<div><: '<^_^>♥' :></div>}), 55 is $tx->render_string(q{<: '<div>' :>}), 58 is $tx->render_string(q{<: '<div>' | raw :>}), 61 is $tx->render_string(q{<: '<div>' | html :>}), 77 is $tx->render_string(q{<div><: '<^_^>♥' :></div>}), 83 is $tx->render_string(q{<: '<div>' :>}), 86 is $tx->render_string(q{<: '<div>' | raw :>}), 89 is $tx->render_string(q{<: '<div>' | html :>}), 109 is $tx_no_autoescape->render_string(q{<: '<div>' :>}), 112 is $tx_no_autoescape->render_string(q{<: '<div>' | raw :>}), [all …]
|
H A D | 034_print.t | 17 is $tx->render_string('[<: myprint() :>]'), '[]'; 18 is $tx->render_string('[<: myprint("<foo>") :>]'), 20 is $tx->render_string('[<: myprint("<foo>", "<bar>") :>]'), 23 is $tx->render_string('[<: mysay() :>]'), "[\n]"; 24 is $tx->render_string('[<: mysay("<foo>") :>]'), 26 is $tx->render_string('[<: mysay("<foo>", "<bar>") :>]'), 29 like $tx->render_string("<: nil :>"), qr/nil/; 30 like $tx->render_string("<: nil :>"), qr/<string>/;
|
H A D | 037_loop_ctl.t | 19 is $tx->render_string(<<'T'), <<'X' or die; 31 is $tx->render_string(<<'T'), <<'X' or die; 46 is $tx->render_string(<<'T', { iter => $iter }), <<'X'; 57 is $tx->render_string(<<'T', { iter => $iter }), <<'X'; 67 is $tx->render_string(<<'T', { iter => $iter }), <<'X'; 77 eval { $tx->render_string(': last') }; 80 eval { $tx->render_string(': next') };
|
H A D | 033_ov_forloop.t | 41 is $tx->render_string($in, \%vars), $out, $msg or do { 51 $tx->render_string(': for $foo -> $i { $i }', 55 is $tx->render_string(': for $foo -> $i { $i }', 61 ok $tx->render_string(': is_array_ref($x)', { x => $x }), 66 ok $tx->render_string(': !is_array_ref($x)', { x => $x }), 71 ok $tx->render_string(': is_hash_ref($x)', { x => $x }), 76 ok $tx->render_string(': !is_hash_ref($x)', { x => $x }),
|
H A D | 035_include_w_vars.t | 26 is $tx->render_string(':include "bar" { $baz }; $lang', 30 is $tx->render_string(':include "bar" { $baz.merge({ lang => "Xslate"}) }; $lang', 34 eval { $tx->render_string(': include "bar" { a => 42, "b" }' ) }; 37 eval { $tx->render_string(': include "bar" { 42 }' ) };
|
/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/t/900_bugs/ |
H A D | 009_quote_in_comments.t | 12 is $tx->render_string(<<'T'), "\n"; 16 is $tx->render_string(<<'T'), "# it's a comment!\n"; 20 is $tx->render_string(<<'T'), "# it's a comment!\n"; 24 is $tx->render_string(<<'T'), "\n"; 28 is $tx->render_string(<<'T'), "\n"; 36 is $tx->render_string(<<'T'), "\n"; 40 is $tx->render_string(<<'T'), "# it's a comment!\n"; 44 is $tx->render_string(<<'T'), "# it's a comment!\n"; 48 is $tx->render_string(<<'T'), "\n"; 52 is $tx->render_string(<<'T'), "\n"; [all …]
|
H A D | 046_issue88.t | 11 is $xslate->render_string('<: $string :>', {string => "Ä"}) => 'Ä'; 12 is $xslate->render_string('<: $string :>', {string => "\x{c4}"}) => 'Ä'; 14 is $xslate->render_string('あ<: $string :>', {string => "Ä"}) => 'あÄ'; 15 is $xslate->render_string('あ<: $string :>', {string => "\x{c4}"}) => 'あÄ'; 17 is $xslate->render_string('<: $string :>', {string => mark_raw("Ä")}) => 'Ä'; 18 is $xslate->render_string('<: $string :>', {string => mark_raw("\x{c4}")}) => 'Ä'; 20 is $xslate->render_string('あ<: $string :>', {string => mark_raw("Ä")}) => 'あÄ'; 21 is $xslate->render_string('あ<: $string :>', {string => mark_raw("\x{c4}")}) => 'あÄ';
|
/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/t/300_examples/ |
H A D | 001_basic.t | 15 is $tx->render_string($tmpl, { dialect => 'Kolon' }), "Hello, Kolon world!\n", "Hello, world"; 29 is $tx->render_string($tmpl, { var => undef }), " \$var is nil.\n"; 30 is $tx->render_string($tmpl, { var => 0 }), qq{ \$var is not nil nor "foo".\n}; 31 is $tx->render_string($tmpl, { var => "foo" }), qq{ \$var is "foo".\n}; 39 is $tx->render_string($tmpl, { var => 5 }), " \$var is 1 .. 10\n"; 40 is $tx->render_string($tmpl, { var => 0 }), ""; 41 is $tx->render_string($tmpl, { var => 11 }), ""; 47 is $tx->render_string($tmpl, { var => {} }), "nil"; 48 is $tx->render_string($tmpl, { var => { value => "<foo>" }}), "<foo>"; 56 is $tx->render_string($tmpl, { data => [1 .. 100] }),
|
H A D | 003_metakolon.t | 15 is $tx->render_string($tmpl, { dialect => 'Kolon' }), "Hello, Kolon world!\n", "Hello, world"; 29 is $tx->render_string($tmpl, { var => undef }), " \$var is nil.\n"; 30 is $tx->render_string($tmpl, { var => 0 }), qq{ \$var is not nil nor "foo".\n}; 31 is $tx->render_string($tmpl, { var => "foo" }), qq{ \$var is "foo".\n}; 39 is $tx->render_string($tmpl, { var => 5 }), " \$var is 1 .. 10\n"; 40 is $tx->render_string($tmpl, { var => 0 }), ""; 41 is $tx->render_string($tmpl, { var => 11 }), ""; 47 is $tx->render_string($tmpl, { var => {} }), "nil"; 48 is $tx->render_string($tmpl, { var => { value => "<foo>" }}), "<foo>"; 56 is $tx->render_string($tmpl, { data => [1 .. 100] }),
|
H A D | 004_tterse.t | 15 is $tx->render_string($tmpl, { dialect => 'Kolon' }), "Hello, Kolon world!\n", "Hello, world"; 27 is $tx->render_string($tmpl, { var => undef }), " \$var is nil.\n"; 28 is $tx->render_string($tmpl, { var => 0 }), qq{ \$var is not nil nor "foo".\n}; 29 is $tx->render_string($tmpl, { var => "foo" }), qq{ \$var is "foo".\n}; 37 is $tx->render_string($tmpl, { var => 5 }), " \$var is 1 .. 10\n"; 38 is $tx->render_string($tmpl, { var => 0 }), ""; 39 is $tx->render_string($tmpl, { var => 11 }), ""; 45 is $tx->render_string($tmpl, { var => {} }), "nil"; 46 is $tx->render_string($tmpl, { var => { value => "<foo>" }}), "<foo>"; 54 is $tx->render_string($tmpl, { data => [1 .. 100] }),
|
/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/t/020_interface/ |
H A D | 003_encoding.t | 25 is $tx->render_string(<<'T', { value => "エクスレート" }), 30 is $tx->render_string(<<'T', { value => "Xslate" }), 36 is $tx->render_string(<<'T'), <<'X', 'macro'; 43 is $tx->render_string(<<'T', { value => "エクスレート" }), 48 is $tx->render_string(q{<: $value :>}, { value => "エクスレート" }), 51 is $tx->render_string(q{<: $value :> <: $value :>}, { value => "エクスレート" }), 54 is $tx->render_string(<<'T', { value => mark_raw("エクスレート") }), 59 is $tx->render_string(q{<: $value :>}, { value => mark_raw("エクスレート") }), 62 is $tx->render_string(q{<: $value :> <: $value :>}, { value => mark_raw("エクスレート") }),
|
H A D | 001_parser_option.t | 14 is $tx->render_string(<<'T'), "Hello, Xslate world!", 'line_start'; 17 is $tx->render_string(<<'T'), qq{: "Hello, Xslate world!"\n}; 26 is $tx->render_string(<<'T'), qq{# "Hello, Xslate world!"\n}, 'line_start => undef'; 29 is $tx->render_string(<<'T'), qq{: "Hello, Xslate world!"\n}; 38 is $tx->render_string(<<'T', { foo => "Xslate"}), q{<: $foo :>Xslate<: $foo :>} . "\n", 'tag_start … 49 is $tx->render_string(<<'T', { foo => "Xslate"}), q{[% $foo %]Xslate[% $foo %]} . "\n", 'tag_start … 58 is $tx->render_string('Hello, {lang} world!', { lang => 'Xslate' }), 'Hello, Xslate world!'; 90 is $tx->render_string($in, \%vars), $out or diag $in;
|
H A D | 009_hash_with_default.t | 13 is $tx->render_string(<<'T', $vars), "Hello, FILLME world!\n"; 17 is $tx->render_string(<<'T', $vars), "FILLME, FILLME, FILLME\n"; 23 is $tx->render_string(<<'T', $vars), "Hello, FILLME/oops world!\n"; 27 is $tx->render_string(<<'T', $vars), "FILLME/a, FILLME/b, FILLME/c\n";
|
/dports/textproc/py-sphinx/Sphinx-3.5.2/tests/ |
H A D | test_util_template.py | 17 assert r.render_string(template, {}) == r'\*hello\*' 24 assert r.render_string(template, {}) == 'hello\n=====' 27 assert r.render_string(template, {}) == 'hello\n=====' 30 assert r.render_string(template, {}) == ('русский язык\n' 36 assert r.render_string(template, {}) == ('русский язык\n'
|
/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/t/040_tterse/ |
H A D | 023_loop_ctl.t | 20 is $tx->render_string(<<'T'), <<'X' or die; 29 is $tx->render_string(<<'T'), <<'X' or die; 41 is $tx->render_string(<<'T', { iter => $iter }), <<'X'; 52 is $tx->render_string(<<'T', { iter => $iter }), <<'X'; 62 is $tx->render_string(<<'T', { iter => $iter }), <<'X';
|
H A D | 018_process.t | 56 my $out = $t->render_string(<<'T', { lang => "Xslate" }); 75 $out = $t->render_string(<<'T'); 85 $out = $t->render_string(<<'T', { lang => 'Xslate' }); 103 $out = $t->render_string(<<'T', { lang => 'Xslate' });
|
H A D | 024_for_else.t | 10 is $tx->render_string(<<'T'), <<'X'; 20 is $tx->render_string(<<'T'), <<'X'; 30 is $tx->render_string(<<'T', { y => 'y' }), <<'X';
|
/dports/editors/hte/ht-e9e63373148da5d7df397d8075740d8c096ecb1d/analyser/ |
H A D | language.h | 42 virtual void render_string(char *result, int maxlen) = 0; 50 virtual void render_string(char *result, int maxlen); 57 virtual void render_string(char *result, int maxlen); 64 virtual void render_string(char *result, int maxlen); 71 virtual void render_string(char *result, int maxlen);
|
/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/t/050_builtins/ |
H A D | 004_copied.t | 20 is $tx->render_string(q{<: $a.merge(3).inc(0).join(',') :>}, { a => \@a}), 24 is $tx->render_string(q{<: $a.merge(3).inc(1).join(',') :>}, { a => \@a}), 28 is $tx->render_string(q{<: $h.keys().inc(0).join(',') :>}, { h => \%h}), 32 is $tx->render_string(q{<: $h.values().inc(0).join(',') :>}, { h => \%h}),
|
/dports/net/cloud-init/cloud-init-21.4/tests/unittests/ |
H A D | test_templating.py | 69 c = templater.render_string(blob, {"a": 1, "b": 2}) 75 c = templater.render_string(blob, {"a": 1, "b": 2}) 80 c = templater.render_string(blob, {"a": 1, "b": 2}) 92 out_data = templater.render_string(in_data, params) 124 templater.render_string( 131 templater.render_string(
|