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

Changing views inside the module doesn't seem to take affect #251

Closed
racke opened this issue May 2, 2013 · 0 comments
Closed

Changing views inside the module doesn't seem to take affect #251

racke opened this issue May 2, 2013 · 0 comments
Labels

Comments

@racke
Copy link
Member

racke commented May 2, 2013

package D2Test;
use strict;
use warnings;
use Dancer2;

set views => 'xviews';

get '/' => sub {
template 'index';
};

1;

@ghost ghost assigned fcuny Jul 13, 2013
fcuny added a commit that referenced this issue Jul 14, 2013
Chaning the values of 'views' and 'layout' inside the module (or the
route) needs to modify the value of the template engine.

By adding a trigger to the 'views' and 'layout' keys in the config, we
can alter the existing template.

Closes #251.
@fcuny fcuny closed this as completed in 747df69 Jul 20, 2013
@fcuny fcuny removed their assignment May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants