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