You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/assets/javascripts/views/pages/ember.coffee

12 lines
327 B

#= require views/pages/base
class app.views.EmberPage extends app.views.BasePage
afterRender: ->
for el in @findAllByTag 'pre'
language = if el.classList.contains 'javascript'
'javascript'
else if el.classList.contains 'html'
'markup'
@highlightCode el, language if language
return