add: text and icon plugins (bberry)
This commit is contained in:
parent
350e47f4b7
commit
7de2c2e935
5 changed files with 78 additions and 38 deletions
|
@ -7,15 +7,15 @@ macro_rules! write_template {
|
|||
($into:ident->$path:literal($as:expr) --config=$config:ident) => {
|
||||
std::fs::write(
|
||||
$into.join($path),
|
||||
$crate::assets::replace_in_html($as, &$config, false).await,
|
||||
$crate::assets::replace_in_html($as, &$config, false, None).await,
|
||||
)
|
||||
.unwrap();
|
||||
};
|
||||
|
||||
($into:ident->$path:literal($as:expr) --config=$config:ident --lisp) => {
|
||||
($into:ident->$path:literal($as:expr) --config=$config:ident --lisp $plugins:ident) => {
|
||||
std::fs::write(
|
||||
$into.join($path),
|
||||
$crate::assets::replace_in_html($as, &$config, true).await,
|
||||
$crate::assets::replace_in_html($as, &$config, true, Some(&mut $plugins)).await,
|
||||
)
|
||||
.unwrap();
|
||||
};
|
||||
|
@ -37,12 +37,12 @@ macro_rules! write_template {
|
|||
|
||||
std::fs::write(
|
||||
$into.join($path),
|
||||
$crate::assets::replace_in_html($as, &$config, false).await,
|
||||
$crate::assets::replace_in_html($as, &$config, false, None).await,
|
||||
)
|
||||
.unwrap();
|
||||
};
|
||||
|
||||
($into:ident->$path:literal($as:expr) -d $dir_path:literal --config=$config:ident --lisp) => {
|
||||
($into:ident->$path:literal($as:expr) -d $dir_path:literal --config=$config:ident --lisp $plugins:ident) => {
|
||||
let dir = $into.join($dir_path);
|
||||
if !std::fs::exists(&dir).unwrap() {
|
||||
std::fs::create_dir(dir).unwrap();
|
||||
|
@ -50,7 +50,7 @@ macro_rules! write_template {
|
|||
|
||||
std::fs::write(
|
||||
$into.join($path),
|
||||
$crate::assets::replace_in_html($as, &$config, true).await,
|
||||
$crate::assets::replace_in_html($as, &$config, true, Some(&mut $plugins)).await,
|
||||
)
|
||||
.unwrap();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue