views フォルダ追加してViewを定義
jade は素人なのでもっといい書き方があるかも
このjade (ejsも) VSの補完は効かないし、
BOMなしで保存しなおさないといけないので、
VS以外のエディタでやるのがいいような…
views/layout.jade (ファイルはもう一つ次のページに)
!!! 5
html
head
title PageTitle
body
#container
#header
block mainContent
views フォルダ追加してViewを定義
views/index.jade
extends layout
block mainContent
h1= title
p Welcome to #{title}
ul
- each test in testArray
li
a(href= "/user/"+test)
b= test
(参考)プロンプト
>vmcu push hello-typescript --runtime node08
Would you like to deploy from the current directory? [Yn]:
Detected a Node.js Application, is this correct? [Yn]:
Application Deployed URL [hello-typescript.uhurucloud.com]:
Memory reservation (128M, 256M, 512M, 1G, 2G) [64M]:
How many instances? [1]:
Bind existing services to 'hello-typescript'? [yN]:
Create services to bind to 'hello-typescript'? [yN]:
Would you like to save this configuration? [yN]:
Creating Application: OK
Uploading Application:
Checking for available resources: OK
Processing resources: OK
Packing application: OK
Uploading (2M): OK
Push Status: OK
Staging Application 'hello-typescript': OK
Starting Application 'hello-typescript': OK