Skip to content

Commit

Permalink
some progress compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 24, 2024
1 parent 89c14e8 commit d46e238
Show file tree
Hide file tree
Showing 15 changed files with 485 additions and 562 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fastn-core/src/package/package_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ pub(crate) async fn read_ftd_(
test: bool,
only_js: bool,
preview_session_id: &Option<String>,
) -> fastn_core::Result<fastn_resolved::CompiledDocument> {
) -> fastn_core::Result<FTDResult> {
tracing::info!(document = main.id);
match config.config.ftd_edition {
fastn_core::FTDEdition::FTD2022 => {
Expand Down
4 changes: 2 additions & 2 deletions fastn-core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ pub async fn replace_markers_2022(
font_style: &str,
base_url: &str,
session_id: &Option<String>,
) -> String {
) -> fastn_resolved::CompiledDocument {
ftd::html::utils::trim_all_lines(
s.replace(
"__ftd_meta_data__",
Expand Down Expand Up @@ -731,7 +731,7 @@ pub async fn replace_markers_2023(
base_url: &str,
config: &fastn_core::Config,
session_id: &Option<String>,
) -> String {
) -> fastn_resolved::CompiledDocument {
format!(
include_str!("../../ftd/ftd-js.html"),
fastn_package = get_fastn_package_data(&config.package).as_str(),
Expand Down
Loading

0 comments on commit d46e238

Please sign in to comment.