diff --git a/package.json b/package.json index f978d2c..faa72a5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "keywords": [ "saucer" ], - "version": "4.2.3", + "version": "5.0.0", "license": "MIT", "author": "Curve (https://github.com/Curve)", "type": "module", diff --git a/src/templates/all.eta b/src/templates/all.eta index 00c863a..e48c82b 100644 --- a/src/templates/all.eta +++ b/src/templates/all.eta @@ -1,6 +1,8 @@ #pragma once -#include + #include +#include + #include <% it.files.forEach(function(file){ %> @@ -11,10 +13,10 @@ namespace saucer::embedded { inline auto all() { - std::map rtn; + std::unordered_map rtn; <% it.files.forEach(function(file){ %> - rtn.emplace("<%= file.path %>", embedded_file{"<%= file.mime %>", <%= file.name %>}); + rtn.emplace("<%= file.path %>", embedded_file{saucer::stash<>::view(<%= file.name %>), "<%= file.mime %>"}); <% }) %> return rtn; diff --git a/src/templates/embed.eta b/src/templates/embed.eta index ad7c526..04e408c 100644 --- a/src/templates/embed.eta +++ b/src/templates/embed.eta @@ -1,4 +1,5 @@ #pragma once + #include #include