Create a View

Alexey Gordeyev edited this page Aug 29, 2015 · 6 revisions

Back to Home

How to create View(s) via CLI TrinteJS MVC

Table of contents

Command format

  format: trinte -g view [view name]

Create a View

$ trinte -g view Post

Generated files, path like that:

    .
    |
    `-- app
        `-- views
            `-- posts
                |-- edit.ejs
                |-- form.ejs
                |-- index.ejs
                |-- new.ejs
                `-- show.ejs

Create a View(s) with namespace

$ 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

Back to Home

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.