mirror of https://github.com/freeCodeCamp/devdocs
12 lines
327 B
12 lines
327 B
![]()
12 years ago
|
#= 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
|