shaman-website-compiler
Version:
Compile raw HTML, CSS and Javascript into the smallest possible, SEO friendly website.
33 lines • 1.07 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileData = void 0;
var file_functions_1 = require("../functions/file.functions");
var FileData = /** @class */ (function () {
function FileData(name, path) {
this.name = name;
this.routePath = name;
this.path = path;
this.text = '';
this.content = '';
this.extension = (0, file_functions_1.GetFileExtension)(path);
this.model = {};
this.query = {};
this.available = false;
}
Object.defineProperty(FileData.prototype, "route", {
get: function () {
if (!this.available)
return false;
if (this.extension == "partial.html")
return false;
if (this.model && this.model.shaman && this.model.shaman.dynamic)
return false;
return true;
},
enumerable: false,
configurable: true
});
return FileData;
}());
exports.FileData = FileData;
//# sourceMappingURL=file-data.js.map