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

Add an easier way (template tag?) to retrieve the template used for the current page #84

Closed
mleroi opened this issue May 10, 2015 · 1 comment
Assignees
Milestone

Comments

@mleroi
Copy link
Collaborator

mleroi commented May 10, 2015

Right now we retrieve this info in screen:show via current_view.template_name :
App.on( 'screen:showed', function( current_screen, current_view ) {
console.log(current_view.template_name);
} );

And, before all, I should write the doc about this screen:show event !

@mleroi mleroi added the core label May 10, 2015
@mleroi mleroi self-assigned this May 10, 2015
@mleroi mleroi added this to the 0.4 milestone May 27, 2015
@mleroi
Copy link
Collaborator Author

mleroi commented May 27, 2015

TemplateTags.getCurrentTemplate() added and doc made for screen:showed event :)
http://uncategorized-creations.com/wp-appkit/doc/#183-screenshowed

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

2 participants