Nested template functions (#186)

This commit is contained in:
Gregory Schier
2025-03-18 12:49:19 -07:00
committed by GitHub
parent b9ed554aca
commit cb773babe1
9 changed files with 321 additions and 118 deletions

View File

@@ -114,8 +114,8 @@ async fn cmd_metadata(app_handle: AppHandle) -> Result<AppMetaData, ()> {
}
#[tauri::command]
async fn cmd_parse_template(template: &str) -> Result<Tokens, String> {
Ok(Parser::new(template).parse())
async fn cmd_parse_template(template: &str) -> YaakResult<Tokens> {
Ok(Parser::new(template).parse()?)
}
#[tauri::command]