feat: slideout editor new new new!
This commit is contained in:
parent
c175a610da
commit
48ac1249c8
10 changed files with 482 additions and 112 deletions
8
bliss-cli/live-editor/template-editor.js
Normal file
8
bliss-cli/live-editor/template-editor.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function handler(req, res) {
|
||||
const sql = require("db")("bliss").sql;
|
||||
const sourceTemplate = sql
|
||||
.prepare("SELECT * FROM templates WHERE id = ?")
|
||||
.get(req.params.id);
|
||||
if (!sourceTemplate) return res.status(404).send("Template not found");
|
||||
res.render("inspector/template_editor", { sourceTemplate });
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue