-
Notifications
You must be signed in to change notification settings - Fork 8
Create a View
Alexey Gordeyev edited this page Aug 29, 2015
·
6 revisions
How to create View(s) via CLI TrinteJS MVC
format: trinte -g view [view name]
$ trinte -g view Post
Generated files, path like that:
.
|
`-- app
`-- views
`-- posts
|-- edit.ejs
|-- form.ejs
|-- index.ejs
|-- new.ejs
`-- show.ejs
$ trinte -g view admin#User
Generated files with namespace, path like that:
.
|
`-- app
`-- views
`-- admin
`-- posts
|-- edit.ejs
|-- form.ejs
|-- index.ejs
|-- new.ejs
`-- show.ejs