18 lines
478 B
C++
18 lines
478 B
C++
#ifndef JS_HPP
|
|
#define JS_HPP JsTarget
|
|
using namespace StandardComponents;
|
|
|
|
struct JsTarget: Target {
|
|
unordered_task_map getTaskMap() final {
|
|
return {
|
|
make_task(Define,
|
|
output << (parseComponent.final ? "const " : "let ") << parseComponent.name << " = ";
|
|
output << "ah";
|
|
),
|
|
make_task(types::String, stringInterpolation(parseComponent.content);)
|
|
};
|
|
}
|
|
using Target::Target;
|
|
};
|
|
|
|
#endif |