mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 16:29:25 +08:00
5 lines
234 B
CoffeeScript
5 lines
234 B
CoffeeScript
Discourse.StaticController.pages.forEach (page) ->
|
|
window.Discourse["#{page.capitalize()}Route"] = Discourse.Route.extend
|
|
renderTemplate: -> @render 'static'
|
|
setupController: -> @controllerFor('static').loadPath("/#{page}")
|