Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Generator] Support view templates #38

Open
claudiopro opened this issue Mar 27, 2024 · 0 comments
Open

[Generator] Support view templates #38

claudiopro opened this issue Mar 27, 2024 · 0 comments

Comments

@claudiopro
Copy link
Member

Summary

When invoking the generator, one can pass an option to prime the view with the content of a template, e.g.:

$ emerails_generate controller -a my_action -t default_action my_controller
                                   _ __
   ___  ____ ___  ___  _________ _(_) /____
  / _ \/ __ `__ \/ _ \/ ___/ __ `/ / / ___/
 /  __/ / / / / /  __/ /  / /_/ / / (__  )
 \___/_/ /_/ /_/\___/_/   \__,_/_/_/____/

(c) Claudio Procida 2008-2024

EmeRails Generator Utility v1.1

        updating controllers/my_controller.php
        creating views/my/my_action.php
        priming views/my/my_action.php from templates/views/default_action.php 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant