Skip to content

Commit

Permalink
Merge pull request #83 from abap34/dev
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
abap34 authored Apr 9, 2024
2 parents b787f9d + 5f3006d commit 671b4c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ do
done



g++ -std=c++20 "$build_dir"almo.cpp -o "$build_dir"almo

if [ $? -ne 0 ]; then
echo "ビルドに失敗しました。"
exit 1
fi


echo "ビルドが完了しました。"
9 changes: 0 additions & 9 deletions src/render.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ namespace almo {
#include "template.html"
;

std::string SIDEBAR_BULDER =
#include "sidebar.js"
;


std::string load_html_template(std::string html_path, std::string css_setting) {
Expand Down Expand Up @@ -67,14 +64,8 @@ namespace almo {
} else {
runner = "<!-- Runner is not required. Skip this. -->";
}

std::string sidebar_builder = "<script>" + SIDEBAR_BULDER + "</script>";

// runner を挿入
result = std::regex_replace(result, std::regex("\\{\\{runner\\}\\}"), runner);
// sidebar_builder を挿入
result = std::regex_replace(result, std::regex("\\{\\{sidebar_builder\\}\\}"), sidebar_builder);


return result;
}
Expand Down

0 comments on commit 671b4c8

Please sign in to comment.