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 adds escaped method names/parameters #11

Open
ryanbyyc opened this issue May 5, 2015 · 0 comments
Open

Generator adds escaped method names/parameters #11

ryanbyyc opened this issue May 5, 2015 · 0 comments

Comments

@ryanbyyc
Copy link

ryanbyyc commented May 5, 2015

Trinte: 0.3.7
Node: 0.12.2
NPM: 2.7.4

Command:
trinte -g controller Post

ViewTemplatePath looks correct, but module.exports.index method declaration, title variable definition and res.render() looks is escaped.

Result:

 *  Posts Controller
 *
 *  @package     trinte
 *  @version     0.0.1
 *  @desc        Web-based Application
 *  @author      Trinte
 *  @created     2015-05-05T01:57:03.225Z
 *  @link        https://github.com/biggora/trinte/wiki
 *
 *  Created by create-controller script
 *  App based on TrinteJS MVC framework
 *  TrinteJS homepage http://www.trintejs.com
 */

var ViewTemplatePath = 'posts';

module.exports = {
    /**
    * index action
    * @param {Object} req
    * @param {Object} res
    * @param {Function} next
    **/
    'index': function(req, res, next) {
           var title = 'Posts';
           res.render(ViewTemplatePath + '/index', { title : title });
    }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant