lang
へpug
って書くだけ。
<template lang="pug"> div image.logo(style='width:500px;height:500px', :src='logo') text.greeting Big Numbers div(@click="jump('/game')") text.btn Start div(@click="jump('/setting')") text.btn Settings </template>
でもその前に
yarn add pug
で入れる。
今まで書いたHTMLは
html2jade.org
でコンバートするのがいい。
HTMLでのimage
が勝手にimg
に変わるので、そこはimage
に変えた。
コンバート結果を100%信頼するのは危険なのでそこは自己責任にで。