Skip to content

About

PHP-like templating in Rust

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-like Templating

Usage:

fn main() {
    plt_template!(some_template;r#"
        <!DOCTYPE html>
        <html>
        <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width" />
        <title><?= title ?></title>
        </head>
        <body>
            <?rs for i in 0..10 { ?>
                <?= body ?>
            <?rs } ?>
        </body>
        </html>
    "#;title: &str, body: &str);

    let response = some_template("this is a title", "some body").unwrap();
}

About

PHP-like templating in Rust

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages