This is the init
..
const app = express();
const expressAMP = require('express-amp');
app.use(expressAMP({
override: false,
staticsPath: ${process.cwd()}/public/
}));
..
response.renderAMP("front/amp/posts/single_post", {
category: category,
category_posts: category_posts,
post: post
})
Whatever i do, the renderAMP will print only {}, e.g. an empty JSON object. May be you know how can i debug this?
-- update
I also tried with the example that you provided, still got the same issue with empty {}.
Switching to version 1.0.5 fixed the problem for me.
This is the init
..
const app = express();
const expressAMP = require('express-amp');
app.use(expressAMP({
override: false,
staticsPath:
${process.cwd()}/public/}));
..
response.renderAMP("front/amp/posts/single_post", {
category: category,
category_posts: category_posts,
post: post
})
Whatever i do, the renderAMP will print only {}, e.g. an empty JSON object. May be you know how can i debug this?
-- update
I also tried with the example that you provided, still got the same issue with empty {}.
Switching to version 1.0.5 fixed the problem for me.