Migrate Jade to Pug template engine

Jade templates engine has been renamed to Pug.

We are using Pug already on the Blender Cloud repository, following is Flamenco and Attract
This commit is contained in:
2017-08-30 14:04:15 +02:00
parent 62542f0329
commit 811236cff4
81 changed files with 17 additions and 17 deletions

23
src/templates/vrview.pug Normal file
View File

@@ -0,0 +1,23 @@
doctype html
html(lang='en')
head
title VR view
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0')
meta(name='mobile-web-app-capable', content='yes')
meta(name='apple-mobile-web-app-capable', content='yes')
meta(name='apple-mobile-web-app-status-bar-style', content='black-translucent')
link(rel="stylesheet", href="{{url_for('static_pillar', filename='assets/css/vrview.css')}}")
body
#error.dialog
.wrap
h1.title Error
p.message An unknown error occurred.
script(src="{{url_for('static_pillar', filename='assets/vrview/three.min.js')}}")
script(src="{{url_for('static_pillar', filename='assets/vrview/embed.min.js')}}")
script.
/** Returns the current yaw in degrees. */
function yaw() {
var the_yaw = worldRenderer.sceneInfo.defaultYaw + worldRenderer.camera.rotation.y;
return the_yaw * 180 / Math.PI;
}