Components routes are routes with extra data/lifecycle hooks on them
route.js file of the route goes straight into vue-router
Markdown routes
Markdown routes are automatically parsed into HTML
Forbidden names
The only forbidden name is routes/index.md as it's global template
Templates
By default we're looking for the nearest template-md.pug and defaults to the nearest template.pug
RIP views, welcome routes
So I resigned from the views concept. Why? Because most likely I won't make many different views. Even if I want, I can still load different style for the route.
Route structure
Routes are special type of components Each route is prerendered as
.html
file to support SEO and og/twitter tagsStructure
Route 'routes/not $lugif1ed' is not a valid name. Route names must be slugified.
routes/name.js
index
Example
Let's consider following example
We have just defined following routes:
/
/name
/nested
/nested/meh
/nested/template
Component routes
Components routes are routes with extra data/lifecycle hooks on them
route.js
file of the route goes straight into vue-routerMarkdown routes
Markdown routes are automatically parsed into HTML
Forbidden names
The only forbidden name is
routes/index.md
as it's global templateTemplates
By default we're looking for the nearest
template-md.pug
and defaults to the nearesttemplate.pug
RIP views, welcome routes
So I resigned from the views concept. Why? Because most likely I won't make many different views. Even if I want, I can still load different style for the route.