Add svelte as a view engine to swaf #33

Merged
ashpie merged 97 commits from svelte into develop 2021-11-09 19:31:22 +01:00
Showing only changes of commit 66a696f40e - Show all commits

View File

@ -3,7 +3,6 @@ import express, {NextFunction, Request, Response, Router} from 'express';
import * as fs from "fs"; import * as fs from "fs";
import nunjucks from "nunjucks"; import nunjucks from "nunjucks";
import * as path from "path"; import * as path from "path";
import url from "url";
import ApplicationComponent from "./ApplicationComponent.js"; import ApplicationComponent from "./ApplicationComponent.js";
import CacheProvider from "./CacheProvider.js"; import CacheProvider from "./CacheProvider.js";
@ -379,7 +378,7 @@ export default abstract class Application implements Extendable<ApplicationCompo
} }
public async isInNodeModules(): Promise<boolean> { public async isInNodeModules(): Promise<boolean> {
return !await doesFileExist('node_modules/swaf'); return await doesFileExist('node_modules/swaf');
} }
public isReady(): boolean { public isReady(): boolean {