}
Server.prototype.get_email = function(pathname) {
- return this.build_cache_email.get(
+ return /*await*/ this.build_cache_email.get(
pathname,
async result => {
let text = await fs_readFile(pathname, {encoding: 'utf-8'})
// this is for read-only JSON files
// they will be reloaded from disk if modified
Server.prototype.get_json = function(pathname) {
- return this.build_cache_json.get(
+ return /*await*/ this.build_cache_json.get(
pathname,
async result => {
let text = await fs_readFile(pathname, {encoding: 'utf-8'})
}
Server.prototype.get_jst = function(dirname, pathname) {
- return js_template(dirname, dirname, pathname, {_server: this})
+ return /*await*/ js_template(dirname, dirname, pathname, {_server: this})
}
Server.prototype.get_less = function(dirname, pathname) {
- return this.build_cache_less.get(
+ pathname = dirname + pathname
+ return /*await*/ this.build_cache_less.get(
pathname,
async result => {
let text = await fs_readFile(pathname, {encoding: 'utf-8'})
//lint: false,
//math: 0,
//modifyVars: null,
- pathnames: [this.root + dirname],
+ pathnames: [dirname],
//plugins: [],
//reUsePluginManager: true,
//rewriteUrls: false,
}
Server.prototype.get_text = function(pathname) {
- return this.build_cache_text.get(
+ return /*await*/ this.build_cache_text.get(
pathname,
async result => {
let text = await fs_readFile(pathname, {encoding: 'utf-8'})
}
Server.prototype.get_zet = function(pathname) {
- return this.build_cache_zet.get(
+ return /*await*/ this.build_cache_zet.get(
pathname,
async result => {
console.log('getting', pathname, 'as zet')
}
Server.prototype.get_zip = function(pathname) {
- return this.build_cache_zip.get(
+ return /*await*/ this.build_cache_zip.get(
pathname,
async result => {
let zipfile = await yauzl_open(pathname, {autoClose: false})
return /*await*/ this.server.get_json(this.root + pathname)
}
SiteRoot.prototype.get_jst = function(pathname) {
- return /*await*/ this.server.get_jst(this.root, /*this.root +*/ pathname)
+ return /*await*/ this.server.get_jst(this.root, pathname)
}
SiteRoot.prototype.get_less = function(pathname) {
- return /*await*/ this.server.get_less(this.root, this.root + pathname)
+ return /*await*/ this.server.get_less(this.root, pathname)
}
SiteRoot.prototype.get_text = function(pathname) {
return /*await*/ this.server.get_text(this.root + pathname)