mirror of https://github.com/freeCodeCamp/devdocs
parent
58d2ecd027
commit
fb37488333
@ -1,9 +0,0 @@
|
|||||||
#= require views/pages/base
|
|
||||||
|
|
||||||
class app.views.ReactPage extends app.views.BasePage
|
|
||||||
prepare: ->
|
|
||||||
for el in @findAllByTag 'pre'
|
|
||||||
switch el.getAttribute('data-lang')
|
|
||||||
when 'html' then @highlightCode el, 'markup'
|
|
||||||
when 'javascript', 'js' then @highlightCode el, 'javascript'
|
|
||||||
return
|
|
Loading…
Reference in new issue