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

API: Look for templates of namespaced classes in subfolders. #5490

Closed
wants to merge 3 commits into from

Commits on May 21, 2016

  1. API: Look for templates of namespaced classes in subfolders.

    This change will mean that SilverStripe\Control\Controller will look for its
    template in templates/SilverStripe/Control/Controller.ss.
    
    In order to preserve some backwards campatibility, non-namespaced classes
    can have the templates stored in any template subfolder, but once you
    add a namespace to a class, the namespaced path expression will need to
    be a subfolder of <module>/templates or themes/<theme>/templates.
    
    Layout and Content templates are stil supported as special template type,
    Includes still functions but is a no-op. Other template subfolders should
    not be used.
    Sam Minnee committed May 21, 2016
    Configuration menu
    Copy the full SHA
    c4dd252 View commit details
    Browse the repository at this point in the history
  2. DOC: Add docs for template namespacing.

    Sam Minnee committed May 21, 2016
    Configuration menu
    Copy the full SHA
    367a365 View commit details
    Browse the repository at this point in the history
  3. NEW: Allow namespaces in template include statements.

    Sam Minnee committed May 21, 2016
    Configuration menu
    Copy the full SHA
    f9db4f8 View commit details
    Browse the repository at this point in the history