Skip to content

Commit

Permalink
Added Compile::Output instead of js String
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal committed Nov 21, 2024
1 parent f79f75c commit 93b0ec4
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions v0.5/fastn-compiler/src/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,12 @@ impl fastn_compiler::Compiler {

let js_document_script = fastn_js::to_js(document_asts.as_slice(), "");

let js_ftd_script = fastn_js::to_js(
fastn_resolved_to_js::default_bag_into_js_ast(&doc).as_slice(),
"foo",
);

let _ssr_body = fastn_js::ssr_with_js_string(
"foo",
format!("{js_ftd_script}\n{js_document_script}").as_str(),
)
.unwrap();

todo!()
js_document_script
}
}

pub struct Output {
js: String,
css_files: Vec<String>,
js_files: Vec<String>,
}

0 comments on commit 93b0ec4

Please sign in to comment.