-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
206 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
impl fastn_compiler::Compiler { | ||
pub(crate) fn js(&self) -> String { | ||
// this function should look a bit like ftd::js::document_into_js_ast(), we do not need | ||
// to construct the Document object there, but will fetch all the fields as variables | ||
|
||
// self.content should be all UR::R now | ||
let _resolved_content = self.resolved_content(); | ||
// every symbol in self.symbol_used in the bag must be UR::R now | ||
let needed_symbols = self.needed_symbols(); | ||
let _js_files = self.external_js_files(&needed_symbols); | ||
let _css_files = self.external_css_files(&needed_symbols); | ||
|
||
todo!() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.