Browse Source

#7 Use pug instead of jade

pull/15/head
Kim Grytøyr 1 year ago
parent
commit
95396fa67b
Signed by: kim <kim@grytoyr.io> GPG Key ID: 759EF8C94E0B45B7
9 changed files with 7 additions and 7 deletions
  1. +1
    -1
      src/app.js
  2. +0
    -0
      src/views/error.pug
  3. +0
    -0
      src/views/footer.pug
  4. +0
    -0
      src/views/header.pug
  5. +2
    -2
      src/views/image.pug
  6. +1
    -1
      src/views/index.pug
  7. +0
    -0
      src/views/layout.pug
  8. +1
    -1
      src/views/stats.pug
  9. +2
    -2
      src/views/text.pug

+ 1
- 1
src/app.js View File

@@ -26,7 +26,7 @@ app.locals.config = config;
// view engine setup
app.locals.pretty = true; // Print pretty HTML
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.set('view engine', 'pug');

// uncomment after placing your favicon in /public
//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));


src/views/error.jade → src/views/error.pug View File


src/views/footer.jade → src/views/footer.pug View File


src/views/header.jade → src/views/header.pug View File


src/views/image.jade → src/views/image.pug View File

@@ -9,7 +9,7 @@ block head
window.vault = '#{paste.vault}';
block content
#content
include header.jade
include header.pug

if paste.encrypted === true
div#data #{data}
@@ -22,4 +22,4 @@ block content
p.
#[a(href="#{rawUrl}") #[img#image.pasted(src="#{data}")]]

include footer.jade
include footer.pug

src/views/index.jade → src/views/index.pug View File

@@ -5,4 +5,4 @@ block content
p Simple personal pastebin server.
a(href="https://src.grytoyr.io/kim/npaste/") https://src.grytoyr.io/kim/npaste/

include footer.jade
include footer.pug

src/views/layout.jade → src/views/layout.pug View File


src/views/stats.jade → src/views/stats.pug View File

@@ -18,5 +18,5 @@ block content
li.
#{stats.count.expired} expired paste#{plural_expired} that does no longer exist.

include footer.jade
include footer.pug


src/views/text.jade → src/views/text.pug View File

@@ -14,7 +14,7 @@ block head
window.vault = '#{paste.vault}';
block content
#content
include header.jade
include header.pug

pre
code#paste(class=paste.plain === true ? "nohighlight" : "")
@@ -25,4 +25,4 @@ block content
if paste.encrypted === true
p#decrypting Decrypting paste..

include footer.jade
include footer.pug

Loading…
Cancel
Save