add mustache helper tp support layout elements
[shapado:shapado.git] / app / views / shared / layout / _javascript.html.haml
1 - if current_group.has_custom_js
2   -current_theme = current_group.current_theme || Theme.where(:is_default => true).first
3   %meta{'data-has-js'=> current_theme.has_js, 'data-theme-js' => javascript_group_path(current_group, params[:test_theme] || current_theme.id, current_theme.version)}
4 = include_javascripts(MODERNIZR)
5 - if Rails.env == 'development'
6   = include_javascripts(:websocket)
7   = include_javascripts(:json)
8   = include_javascripts(:geolocation)
9   = include_javascripts(:base_7)
10   = include_javascripts(:extra_1)
11   = include_javascripts(:jqueryautovideo)
12   = include_javascripts(:jpicker)
13   = include_javascripts(:initdev)
14
15 =javascript_include_tag "i18n/#{I18n.locale}"
16
17 = yield :js