[update] Pug support
This commit is contained in:
+2
-1
@@ -67,6 +67,7 @@ class App
|
||||
project.files.create_version( './icons/test.php', 'Test icon' )
|
||||
project.files.create_version( './icons/test.json', 'Test icon' )
|
||||
project.files.create_version( './icons/test.jade', 'Test icon' )
|
||||
project.files.create_version( './icons/test.pug', 'Test icon' )
|
||||
project.files.create_version( './icons/test.md', 'Test icon' )
|
||||
project.files.create_version( './icons/test.sql', 'Test icon' )
|
||||
project.files.create_version( './icons/test.htaccess', 'Test icon' )
|
||||
@@ -174,7 +175,7 @@ class App
|
||||
// Set up
|
||||
this.express = express()
|
||||
this.express.use( helmet() )
|
||||
this.express.set( 'view engine', 'jade' )
|
||||
this.express.set( 'view engine', 'pug' )
|
||||
this.express.set( 'views', path.join( __dirname, 'views' ) )
|
||||
this.express.use( express.static( path.join( __dirname, 'public' ) ) )
|
||||
|
||||
|
||||
@@ -3,13 +3,13 @@ var express = require( 'express' ),
|
||||
|
||||
router.get( '/', function( request, response )
|
||||
{
|
||||
response.render( 'pages/index/projects.jade', {} )
|
||||
response.render( 'pages/index/projects.pug', {} )
|
||||
} )
|
||||
|
||||
router.get( /project\/(.+)/, function( request, response )
|
||||
{
|
||||
response.render(
|
||||
'pages/index/project.jade',
|
||||
'pages/index/project.pug',
|
||||
{
|
||||
project_slug: request.params['0']
|
||||
}
|
||||
|
||||
+3
-2
@@ -22,8 +22,9 @@
|
||||
"express": "^4.13.4",
|
||||
"helmet": "^2.1.0",
|
||||
"ip": "^1.1.3",
|
||||
"jade": "^1.11.0",
|
||||
"pug": "^2.0.0-beta4",
|
||||
"slug": "^0.9.1",
|
||||
"socket.io": "^1.4.6"
|
||||
}
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ application.factory(
|
||||
'php' : [ 'php' ],
|
||||
'json' : [ 'json' ],
|
||||
'jade' : [ 'jade' ],
|
||||
'pug' : [ 'pug' ],
|
||||
'md' : [ 'md' ],
|
||||
'sql' : [ 'sql' ],
|
||||
'apache' : [ 'htaccess', 'htpasswd' ],
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -183,6 +183,8 @@ body.project
|
||||
background-image url('../svg/json.svg')
|
||||
&.jade
|
||||
background-image url('../svg/jade.svg')
|
||||
&.pug
|
||||
background-image url('../svg/pug.svg')
|
||||
&.md
|
||||
background-image url('../svg/md.svg')
|
||||
&.sql
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 222.3 138" enable-background="new 0 0 222.3 138" xml:space="preserve">
|
||||
<path fill="#A96454" d="M65.2,4.6c-4.5,0-35.4,7.1-45.1,18.4S0,46.4,0,46.4s17.2,14.1,20.1,20.9s5.4,13.3,6.8,16
|
||||
c1.4,2.7,7.2,2.7,7.2,2.7s1.2-31.4,5.2-47.2C43.7,21.8,51.8,12.3,65.2,4.6z"/>
|
||||
<path fill="#A96454" d="M131.5,124.6c0-26.6-18.2-32.5-18.2-32.5s0-3.9,0-13.7c5.8-1.6,7.8-7.5,7.8-7.5s-3.7,3.2-9.7,3.2
|
||||
s-9.7-3.2-9.7-3.2s2,5.9,7.8,7.5c0,9.7,0,13.7,0,13.7S91.1,98,91.1,124.6c0-20.9,15.9-28.5,20.2-28.5S131.5,103.7,131.5,124.6z"/>
|
||||
<path fill="#A96454" d="M157.1,4.6c4.5,0,35.4,7.1,45.1,18.4s20.1,23.4,20.1,23.4s-17.2,14.1-20.1,20.9s-5.4,13.3-6.8,16
|
||||
c-1.4,2.7-7.2,2.7-7.2,2.7s-1.2-31.4-5.2-47.2C178.7,21.8,170.5,12.3,157.1,4.6z"/>
|
||||
<path fill="#A96454" d="M179.7,40.1c-3.6-17.2-8-21.9-20-30.8c-11.9-8.8-33-9.3-48.6-9.3S74.4,0.5,62.6,9.3
|
||||
c-12,8.9-16.4,13.5-20,30.8c-3.6,17.2-5.4,26.7-5.4,36.7c0,10,2,14.5,4.5,18.3c2.5,3.7,7.2,4.1,8.6,12.6c1.4,8.6,5.3,13.6,8.1,15.3
|
||||
c2.8,1.7,19.7,15,52.8,15s50-13.3,52.8-15c2.8-1.8,6.8-6.8,8.1-15.3c1.4-8.6,6-8.9,8.6-12.6c2.5-3.7,4.5-8.2,4.5-18.3
|
||||
C185.1,66.8,183.3,57.3,179.7,40.1C176.1,22.9,183.3,57.3,179.7,40.1z M49.7,54.7c0-8.4,6.8-15.2,15.2-15.2s15.2,6.8,15.2,15.2
|
||||
c0,2.1-0.4,4.2-1.2,6l-10.2,8.7c-1.2,0.3-2.4,0.5-3.7,0.5C56.5,69.9,49.7,63.1,49.7,54.7z M150.6,125.2c-8.6,7-30.9,8.9-39.4,9
|
||||
c-8.5-0.1-30.8-2-39.4-9c-8.8-7.1-8.9-22.1-7.2-32.9c1.7-10.8,16.1-29.3,32.1-31.1c0.7-6.2,8.8-8.4,14.5-8.4s13.8,2.2,14.5,8.4
|
||||
c16,1.8,30.4,20.3,32.1,31.1C159.5,103.2,159.4,118.1,150.6,125.2z M157.4,69.9c-1.3,0-2.5-0.2-3.7-0.5l-10.2-8.7
|
||||
c-0.8-1.8-1.2-3.9-1.2-6c0-8.4,6.8-15.2,15.2-15.2s15.2,6.8,15.2,15.2S165.8,69.9,157.4,69.9z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -1,5 +1,5 @@
|
||||
- var page_class = 'project'
|
||||
include ../../partials/header.jade
|
||||
include ../../partials/header.pug
|
||||
|
||||
script(type="text/ng-template",id="folder_template.html")
|
||||
span(ng-click="folder_click(_folder)")
|
||||
@@ -105,7 +105,7 @@ div(ng-controller="ProjectController as controller",ng-init="init('" + project_s
|
||||
| {{_version.diff_percent}}
|
||||
section.code
|
||||
pre
|
||||
code.lines
|
||||
code.lines
|
||||
- var line_index = 1
|
||||
while line_index < 999
|
||||
.line= line_index++
|
||||
@@ -117,4 +117,4 @@ div(ng-controller="ProjectController as controller",ng-init="init('" + project_s
|
||||
| {{ _difference.value }}
|
||||
|
||||
|
||||
include ../../partials/footer.jade
|
||||
include ../../partials/footer.pug
|
||||
@@ -1,5 +1,5 @@
|
||||
- var page_class = 'projects'
|
||||
include ../../partials/header.jade
|
||||
include ../../partials/header.pug
|
||||
|
||||
.gradient-backgroud
|
||||
section.landing
|
||||
@@ -93,4 +93,4 @@ section.text
|
||||
span.line.opacity-20
|
||||
| keppler "My project"
|
||||
|
||||
include ../../partials/footer.jade
|
||||
include ../../partials/footer.pug
|
||||
Reference in New Issue
Block a user