MCPcopy Create free account

hub / github.com/INSAgenda/yew-template / functions

Functions31 in github.com/INSAgenda/yew-template

↓ 6 callersMethodto_code
(&self, values: Vec<String>)
src/helper.rs:59
↓ 4 callersFunctionescaped_str_code
Used to safely embed external strings into generated Rust code without risking injection attacks.
src/codegen.rs:4
↓ 4 callersMethodget_val
(&self, id: &str, opts: &mut Vec<String>, iters: &mut Vec<String>, args: &Args)
src/args.rs:32
↓ 2 callersFunctionattr_to_code
Turns an HTML attribute to Rust code for Yew
src/codegen.rs:26
↓ 2 callersFunctioncontext_from_path
(path: &str)
src/i18n.rs:11
↓ 2 callersMethodinto_code
Turns the HTML part into Rust code for Yew
src/html_element.rs:11
↓ 2 callersMethodparse
(value: &str)
src/helper.rs:10
↓ 1 callersMethodclean_text
(&mut self)
src/html_element.rs:35
↓ 1 callersFunctionelement_to_code
Turns an HTML element and its children to Rust code for Yew
src/codegen.rs:75
↓ 1 callersFunctiongenerate_code
(root: Element, args: Args)
src/codegen.rs:249
↓ 1 callersFunctiongenerate_pot
(root: &Element, args: &Args)
src/i18n.rs:46
↓ 1 callersMethodgenerate_pot_part
(&self)
src/i18n.rs:41
↓ 1 callersMethodget_translatables
(&self, args: &Args)
src/i18n.rs:16
↓ 1 callersMethodinto_vec
(self)
src/config.rs:11
↓ 1 callersFunctionparse_args
(args: TokenStream)
src/args.rs:81
↓ 1 callersFunctionread_config
()
src/config.rs:95
↓ 1 callersFunctionread_template
(args: &Args)
src/sink.rs:62
↓ 1 callersFunctiontext_part_to_code
Turns a [TextPart] to Rust code for Yew
src/codegen.rs:10
↓ 1 callersFunctiontext_to_code
Turns HTML text to Rust code for Yew
src/codegen.rs:185
↓ 1 callersMethodtranslate_text
(&self, text: &str, args: &Args)
src/i18n.rs:135
Methoddefault
()
src/config.rs:44
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/args.rs:23
Methodfrom
(val: ConfigLoader)
src/config.rs:71
Functionmain
()
tests/main.rs:8
Methodnew
(locale_directory: &str)
src/i18n.rs:94
Methodparse
Parses HTML text into a list of text parts
src/text_part.rs:14
Functionprint_default_config
()
src/config.rs:125
Methodprocess_token
(&mut self, token: HtmlToken, line_number: u64)
src/sink.rs:13
Functiontemplate_html
(args: TokenStream)
src/lib.rs:39
Functiontest_helper
()
src/helper.rs:70
Methodto_code
Turns the text part into valid Rust code for Yew
src/text_part.rs:40