/dports/graphics/py-django-easy-thumbnails/easy-thumbnails-2.5/easy_thumbnails/tests/ |
H A D | test_templatetags.py | 156 output = self.render_template( 164 output = self.render_template( 170 output = self.render_template( 177 output = self.render_template( 182 output = self.render_template( 193 output = self.render_template( 214 output = self.render_template( 223 output = self.render_template( 268 output = self.render_template(src) 279 output = self.render_template(src) [all …]
|
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/handlebars-4.1.5/tests/ |
H A D | helper_macro.rs | 36 hbs.render_template("{{lower this}}", &data).unwrap(), in test_macro_helper() 40 hbs.render_template("{{upper this}}", &data).unwrap(), in test_macro_helper() 46 hbs.render_template("{{money 5000}}", &()).unwrap(), in test_macro_helper() 50 hbs.render_template("{{money 5000 cur=\"£\"}}", &()) in test_macro_helper() 55 hbs.render_template("{{nargs 1 1 1 1 1}}", &()).unwrap(), in test_macro_helper() 58 assert_eq!(hbs.render_template("{{nargs}}", &()).unwrap(), "0"); in test_macro_helper() 61 hbs.render_template("{{has_a a=1 b=2}}", &()).unwrap(), in test_macro_helper() 66 hbs.render_template("{{has_a x=1 b=2}}", &()).unwrap(), in test_macro_helper() 71 hbs.render_template("{{tag \"html\"}}", &()).unwrap(), in test_macro_helper() 76 hbs.render_template("{{{tag \"html\"}}}", &()).unwrap(), in test_macro_helper() [all …]
|
H A D | subexpression.rs | 17 hbs.render_template("{{#if (gt a b)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 23 hbs.render_template("{{#if (gt a c)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 29 hbs.render_template("{{#if (not (gt a c))}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 42 .render_template("{{#if (not)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 47 hbs.render_template("{{#if (not true)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 52 hbs.render_template("{{#if (not false)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 66 .render_template("{{#if (eq a 1)}}Success{{else}}Failed{{/if}}", &data) in test_strict_mode() 69 .render_template("{{#if (eq z 1)}}Success{{else}}Failed{{/if}}", &data) in test_strict_mode() 80 let error = hbs.render_template("{{x[]@this}}", &data).unwrap_err(); in invalid_json_path() 153 .render_template( in test_helper_call_count() [all …]
|
/dports/textproc/mdbook/mdBook-0.4.13/cargo-crates/handlebars-4.1.2/tests/ |
H A D | helper_macro.rs | 36 hbs.render_template("{{lower this}}", &data).unwrap(), in test_macro_helper() 40 hbs.render_template("{{upper this}}", &data).unwrap(), in test_macro_helper() 46 hbs.render_template("{{money 5000}}", &()).unwrap(), in test_macro_helper() 50 hbs.render_template("{{money 5000 cur=\"£\"}}", &()) in test_macro_helper() 55 hbs.render_template("{{nargs 1 1 1 1 1}}", &()).unwrap(), in test_macro_helper() 58 assert_eq!(hbs.render_template("{{nargs}}", &()).unwrap(), "0"); in test_macro_helper() 61 hbs.render_template("{{has_a a=1 b=2}}", &()).unwrap(), in test_macro_helper() 66 hbs.render_template("{{has_a x=1 b=2}}", &()).unwrap(), in test_macro_helper() 71 hbs.render_template("{{tag \"html\"}}", &()).unwrap(), in test_macro_helper() 76 hbs.render_template("{{{tag \"html\"}}}", &()).unwrap(), in test_macro_helper() [all …]
|
H A D | subexpression.rs | 17 hbs.render_template("{{#if (gt a b)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 23 hbs.render_template("{{#if (gt a c)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 29 hbs.render_template("{{#if (not (gt a c))}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 42 .render_template("{{#if (not)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 47 hbs.render_template("{{#if (not true)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 52 hbs.render_template("{{#if (not false)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 66 .render_template("{{#if (eq a 1)}}Success{{else}}Failed{{/if}}", &data) in test_strict_mode() 69 .render_template("{{#if (eq z 1)}}Success{{else}}Failed{{/if}}", &data) in test_strict_mode() 80 let error = hbs.render_template("{{x[]@this}}", &data).unwrap_err(); in invalid_json_path() 153 .render_template( in test_helper_call_count() [all …]
|
/dports/textproc/mdbook-linkcheck/mdbook-linkcheck-0.7.6/cargo-crates/handlebars-4.1.4/tests/ |
H A D | helper_macro.rs | 36 hbs.render_template("{{lower this}}", &data).unwrap(), in test_macro_helper() 40 hbs.render_template("{{upper this}}", &data).unwrap(), in test_macro_helper() 46 hbs.render_template("{{money 5000}}", &()).unwrap(), in test_macro_helper() 50 hbs.render_template("{{money 5000 cur=\"£\"}}", &()) in test_macro_helper() 55 hbs.render_template("{{nargs 1 1 1 1 1}}", &()).unwrap(), in test_macro_helper() 58 assert_eq!(hbs.render_template("{{nargs}}", &()).unwrap(), "0"); in test_macro_helper() 61 hbs.render_template("{{has_a a=1 b=2}}", &()).unwrap(), in test_macro_helper() 66 hbs.render_template("{{has_a x=1 b=2}}", &()).unwrap(), in test_macro_helper() 71 hbs.render_template("{{tag \"html\"}}", &()).unwrap(), in test_macro_helper() 76 hbs.render_template("{{{tag \"html\"}}}", &()).unwrap(), in test_macro_helper() [all …]
|
H A D | subexpression.rs | 17 hbs.render_template("{{#if (gt a b)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 23 hbs.render_template("{{#if (gt a c)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 29 hbs.render_template("{{#if (not (gt a c))}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 42 .render_template("{{#if (not)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 47 hbs.render_template("{{#if (not true)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 52 hbs.render_template("{{#if (not false)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 66 .render_template("{{#if (eq a 1)}}Success{{else}}Failed{{/if}}", &data) in test_strict_mode() 69 .render_template("{{#if (eq z 1)}}Success{{else}}Failed{{/if}}", &data) in test_strict_mode() 80 let error = hbs.render_template("{{x[]@this}}", &data).unwrap_err(); in invalid_json_path() 153 .render_template( in test_helper_call_count() [all …]
|
/dports/security/vaultwarden/vaultwarden-1.23.1/docker/ |
H A D | Makefile | 5 %/Dockerfile: Dockerfile.j2 render_template 6 ./render_template "$<" "{\"target_file\":\"$@\"}" > "$@" 8 %/Dockerfile.alpine: Dockerfile.j2 render_template 9 ./render_template "$<" "{\"target_file\":\"$@\"}" > "$@" 11 %/Dockerfile.buildx: Dockerfile.j2 render_template 12 ./render_template "$<" "{\"target_file\":\"$@\"}" > "$@" 14 %/Dockerfile.buildx.alpine: Dockerfile.j2 render_template 15 ./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"
|
/dports/lang/rust/rustc-1.58.1-src/vendor/handlebars/tests/ |
H A D | helper_macro.rs | 33 hbs.render_template("{{lower this}}", &data).unwrap(), in test_macro_helper() 37 hbs.render_template("{{upper this}}", &data).unwrap(), in test_macro_helper() 40 assert_eq!(hbs.render_template("{{hex 16}}", &()).unwrap(), "0x10"); in test_macro_helper() 43 hbs.render_template("{{money 5000}}", &()).unwrap(), in test_macro_helper() 47 hbs.render_template("{{money 5000 cur=\"£\"}}", &()) in test_macro_helper() 52 hbs.render_template("{{nargs 1 1 1 1 1}}", &()).unwrap(), in test_macro_helper() 55 assert_eq!(hbs.render_template("{{nargs}}", &()).unwrap(), "0"); in test_macro_helper() 58 hbs.render_template("{{has_a a=1 b=2}}", &()).unwrap(), in test_macro_helper() 63 hbs.render_template("{{has_a x=1 b=2}}", &()).unwrap(), in test_macro_helper() 68 hbs.render_template("{{tag \"html\"}}", &()).unwrap(), in test_macro_helper() [all …]
|
H A D | subexpression.rs | 17 hbs.render_template("{{#if (gt a b)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 23 hbs.render_template("{{#if (gt a c)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 29 hbs.render_template("{{#if (not (gt a c))}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 42 .render_template("{{#if (not)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 47 hbs.render_template("{{#if (not true)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 52 hbs.render_template("{{#if (not false)}}Success{{else}}Failed{{/if}}", &data) in test_subexpression() 66 .render_template("{{#if (eq a 1)}}Success{{else}}Failed{{/if}}", &data) in test_strict_mode() 69 .render_template("{{#if (eq z 1)}}Success{{else}}Failed{{/if}}", &data) in test_strict_mode() 80 let error = hbs.render_template("{{x[]@this}}", &data).unwrap_err(); in invalid_json_path() 153 .render_template( in test_helper_call_count() [all …]
|
/dports/devel/tokei/tokei-12.1.2/cargo-crates/tera-1.6.1/src/renderer/tests/ |
H A D | basic.rs | 17 fn render_template(content: &str, context: &Context) -> Result<String> { in render_template() function 31 let result = render_template("<h1>Hello world</h1>", &Context::new()); in render_simple_string() 136 assert_eq!(render_template(input, &context).unwrap(), expected); in render_variable_block_ident() 253 assert_eq!(render_template(input, &context).unwrap(), "&ey"); in filter_args_are_not_escaped() 545 let result = render_template("{{ __tera_context }}", &context); in render_magic_variable_isnt_escaped() 570 assert_eq!(render_template(&tpl, &context).unwrap(), expected); in ok_many_variable_blocks() 579 let result = render_template( in can_set_variable_in_global_context_in_forloop() 689 let res = render_template( in can_fail_rendering_from_template() 721 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects() 742 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects_string_keys() [all …]
|
/dports/www/py-puppetboard/puppetboard-3.3.0/puppetboard/ |
H A D | errors.py | 1 from flask import render_template 12 return render_template('400.html', envs=envs), 400 18 return render_template('403.html', envs=envs), 403 24 return render_template('404.html', envs=envs), 404 32 return render_template('412.html', envs=envs), 412 42 return render_template('500.html', envs=envs), 500
|
/dports/www/py-django-cms/django-cms-3.7.1/cms/test_utils/project/pluginapp/plugins/revdesc/ |
H A D | cms_plugins.py | 10 render_template = 'cms/content.html' variable in RevDescUnalteredP 16 render_template = 'cms/content.html' variable in RevDescNoRelNmeP 22 render_template = 'cms/content.html' variable in RevDescNoRelQNmeP 28 render_template = 'cms/content.html' variable in RevDescCustomRelQNmeP 34 render_template = 'cms/content.html' variable in RevDescCustomRelNmeP 40 render_template = 'cms/content.html' variable in RevDescCustomRelNmeAndRelQNmeP
|
/dports/devel/grcov/grcov-0.8.2/cargo-crates/tera-1.12.1/src/renderer/tests/ |
H A D | basic.rs | 17 fn render_template(content: &str, context: &Context) -> Result<String> { in render_template() function 31 let result = render_template("<h1>Hello world</h1>", &Context::new()); in render_simple_string() 136 assert_eq!(render_template(input, &context).unwrap(), expected); in render_variable_block_ident() 253 assert_eq!(render_template(input, &context).unwrap(), "&ey"); in filter_args_are_not_escaped() 576 let result = render_template("{{ __tera_context }}", &context); in render_magic_variable_isnt_escaped() 601 assert_eq!(render_template(&tpl, &context).unwrap(), expected); in ok_many_variable_blocks() 610 let result = render_template( in can_set_variable_in_global_context_in_forloop() 720 let res = render_template( in can_fail_rendering_from_template() 752 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects() 773 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects_string_keys() [all …]
|
/dports/sysutils/onefetch/onefetch-2.10.2/cargo-crates/tera-1.12.0/src/renderer/tests/ |
H A D | basic.rs | 17 fn render_template(content: &str, context: &Context) -> Result<String> { in render_template() function 31 let result = render_template("<h1>Hello world</h1>", &Context::new()); in render_simple_string() 136 assert_eq!(render_template(input, &context).unwrap(), expected); in render_variable_block_ident() 253 assert_eq!(render_template(input, &context).unwrap(), "&ey"); in filter_args_are_not_escaped() 576 let result = render_template("{{ __tera_context }}", &context); in render_magic_variable_isnt_escaped() 601 assert_eq!(render_template(&tpl, &context).unwrap(), expected); in ok_many_variable_blocks() 610 let result = render_template( in can_set_variable_in_global_context_in_forloop() 720 let res = render_template( in can_fail_rendering_from_template() 752 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects() 773 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects_string_keys() [all …]
|
/dports/www/zola/zola-0.15.2/cargo-crates/tera-1.15.0/src/renderer/tests/ |
H A D | basic.rs | 17 fn render_template(content: &str, context: &Context) -> Result<String> { in render_template() function 31 let result = render_template("<h1>Hello world</h1>", &Context::new()); in render_simple_string() 136 assert_eq!(render_template(input, &context).unwrap(), expected); in render_variable_block_ident() 253 assert_eq!(render_template(input, &context).unwrap(), "&ey"); in filter_args_are_not_escaped() 576 let result = render_template("{{ __tera_context }}", &context); in render_magic_variable_isnt_escaped() 601 assert_eq!(render_template(&tpl, &context).unwrap(), expected); in ok_many_variable_blocks() 610 let result = render_template( in can_set_variable_in_global_context_in_forloop() 720 let res = render_template( in can_fail_rendering_from_template() 752 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects() 773 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects_string_keys() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/vendor/tera/src/renderer/tests/ |
H A D | basic.rs | 17 fn render_template(content: &str, context: &Context) -> Result<String> { in render_template() function 31 let result = render_template("<h1>Hello world</h1>", &Context::new()); in render_simple_string() 136 assert_eq!(render_template(input, &context).unwrap(), expected); in render_variable_block_ident() 253 assert_eq!(render_template(input, &context).unwrap(), "&ey"); in filter_args_are_not_escaped() 576 let result = render_template("{{ __tera_context }}", &context); in render_magic_variable_isnt_escaped() 601 assert_eq!(render_template(&tpl, &context).unwrap(), expected); in ok_many_variable_blocks() 610 let result = render_template( in can_set_variable_in_global_context_in_forloop() 720 let res = render_template( in can_fail_rendering_from_template() 752 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects() 773 assert_eq!(render_template(tpl, &context).unwrap(), expected); in does_render_owned_for_loop_with_objects_string_keys() [all …]
|
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/handlebars-4.1.5/src/helpers/ |
H A D | helper_if.rs | 107 .render_template("{{#if a}}1{{else}}0{{/if}}", &json!({"a": 0})) in test_if_include_zero() 113 .render_template( in test_if_include_zero() 122 .render_template( in test_if_include_zero() 135 hbs.render_template("{{#if a}}\nyes\n{{/if}}\n", &json!({"a": true})) in test_invisible_line_stripping() 141 hbs.render_template("{{#if a}}\r\nyes\r\n{{/if}}\r\n", &json!({"a": true})) in test_invisible_line_stripping() 147 hbs.render_template("{{#if a}}x{{/if}}\ny", &json!({"a": true})) in test_invisible_line_stripping() 153 hbs.render_template("{{#if a}}\nx\n{{^}}\ny\n{{/if}}\nz", &json!({"a": false})) in test_invisible_line_stripping() 162 hbs.render_template( in test_invisible_line_stripping() 178 hbs.render_template( in test_invisible_line_stripping()
|
/dports/www/py-webassets/webassets-2.0/tests/test_ext/ |
H A D | test_jinja2.py | 53 def render_template(self, args, ctx=None): member in TestTemplateTag 64 self.render_template('"foo_bundle", "bar_bundle"') 68 self.render_template('"file1", "file2", "file3"') 72 self.render_template('["file1", "file2", "file3"]') 76 self.render_template('("file1", "file2", "file3")') 80 self.render_template('"file1", ("file2", "file3")') 84 self.render_template('"foo_bundle", "file2", "file3"') 88 self.render_template('var1, var2', {'var1': self.foo_bundle, 'var2': 'a_file'}) 95 assert self.render_template('"file1" "file2" "file3"') == 'foo;bar;'
|
/dports/textproc/mdbook/mdBook-0.4.13/cargo-crates/handlebars-4.1.2/src/helpers/ |
H A D | helper_if.rs | 107 .render_template("{{#if a}}1{{else}}0{{/if}}", &json!({"a": 0})) in test_if_include_zero() 113 .render_template( in test_if_include_zero() 122 .render_template( in test_if_include_zero() 135 hbs.render_template("{{#if a}}\nyes\n{{/if}}\n", &json!({"a": true})) in test_invisible_line_stripping() 141 hbs.render_template("{{#if a}}\r\nyes\r\n{{/if}}\r\n", &json!({"a": true})) in test_invisible_line_stripping() 147 hbs.render_template("{{#if a}}x{{/if}}\ny", &json!({"a": true})) in test_invisible_line_stripping() 153 hbs.render_template("{{#if a}}\nx\n{{^}}\ny\n{{/if}}\nz", &json!({"a": false})) in test_invisible_line_stripping() 162 hbs.render_template( in test_invisible_line_stripping() 178 hbs.render_template( in test_invisible_line_stripping()
|
/dports/textproc/mdbook-linkcheck/mdbook-linkcheck-0.7.6/cargo-crates/handlebars-4.1.4/src/helpers/ |
H A D | helper_if.rs | 107 .render_template("{{#if a}}1{{else}}0{{/if}}", &json!({"a": 0})) in test_if_include_zero() 113 .render_template( in test_if_include_zero() 122 .render_template( in test_if_include_zero() 135 hbs.render_template("{{#if a}}\nyes\n{{/if}}\n", &json!({"a": true})) in test_invisible_line_stripping() 141 hbs.render_template("{{#if a}}\r\nyes\r\n{{/if}}\r\n", &json!({"a": true})) in test_invisible_line_stripping() 147 hbs.render_template("{{#if a}}x{{/if}}\ny", &json!({"a": true})) in test_invisible_line_stripping() 153 hbs.render_template("{{#if a}}\nx\n{{^}}\ny\n{{/if}}\nz", &json!({"a": false})) in test_invisible_line_stripping() 162 hbs.render_template( in test_invisible_line_stripping() 178 hbs.render_template( in test_invisible_line_stripping()
|
/dports/www/py-horizon/horizon-19.2.0/horizon/test/unit/templatetags/ |
H A D | test_templatetags.py | 47 return self.render_template(tag_call, tag_require) 49 def render_template(self, template_text, tag_require='', context=None): member in TemplateTagTests 72 rendered_str = self.render_template(tag_require='sizeformat', 85 rendered_str = self.render_template(tag_require='sizeformat', 98 rendered_str = self.render_template(tag_require='truncate_filter', 113 rendered_str = self.render_template(tag_require='horizon', 133 rendered_str = self.render_template(tag_require='angular', 151 rendered_str = self.render_template(tag_require='horizon',
|
/dports/www/py-pyramid/pyramid-1.7.3/pyramid/tests/test_scaffolds/ |
H A D | test_template.py | 12 result = inst.render_template('{{a}} {{b}}', {'a':'1', 'b':'2'}) 17 self.assertRaises(AttributeError, inst.render_template, 22 result = inst.render_template('{{a.lower()}}', {'a':'A'}) 27 result = inst.render_template('{{b|c|a.lower()}}', {'a':'A'}) 32 result = inst.render_template('{{b|a.lower()|c}}', {'a':'A'}) 37 result = inst.render_template('{{a}}', {'a':None}) 42 result = inst.render_template('{{a}} {{b}} \{\{a\}\} \{\{c\}\}', {'a':'1', 'b':'2'}) 47 result = inst.render_template('{{a}} {{b}} \{\{a\} \{b\}\}', {'a':'1', 'b':'2'}) 52 result = inst.render_template('{{a}} {{b}} \{a\} \{b', {'a':'1', 'b':'2'}) 101 {'template_renderer':inst.render_template,
|
/dports/www/py-django-cms/django-cms-3.7.1/cms/test_utils/project/pluginapp/plugins/caching/ |
H A D | cms_plugins.py | 14 render_template = "plugins/nocache.html" variable in NoCachePlugin 27 render_template = "plugins/nocache.html" variable in LegacyCachePlugin 43 render_template = "plugins/nocache.html" variable in TTLCacheExpirationPlugin 58 render_template = "plugins/nocache.html" variable in TimeDeltaCacheExpirationPlugin 73 render_template = "plugins/nocache.html" variable in DateTimeCacheExpirationPlugin 89 render_template = "plugins/nocache.html" variable in VaryCacheOnPlugin 105 render_template = "plugins/sekizai.html" variable in SekizaiPlugin
|
/dports/www/py-django-cms/django-cms-3.7.1/cms/test_utils/project/pluginapp/plugins/meta/ |
H A D | cms_plugins.py | 14 render_template = 'cms/content.html' variable in TestPlugin 20 render_template = 'cms/content.html' variable in TestPlugin2 26 render_template = 'cms/content.html' variable in TestPlugin3 32 render_template = 'cms/content.html' variable in TestPlugin4 38 render_template = 'cms/content.html' variable in TestPlugin5
|