rempl-macros 0.3.1

A simple library for creating html components directly in your source
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::path::Path;

fn main() {
    let out_dir = std::env::var("OUT_DIR").unwrap();
    let component_dir = format!("{}/components", out_dir);

    if !Path::new(&component_dir).exists() {
        std::fs::create_dir(&component_dir).unwrap();
    }
    println!("cargo::rerun-if-changed={}", component_dir);
}