Skip to content

Instantly share code, notes, and snippets.

@ikennaokpala
Created September 24, 2011 21:09
Show Gist options
  • Save ikennaokpala/1239868 to your computer and use it in GitHub Desktop.
Save ikennaokpala/1239868 to your computer and use it in GitHub Desktop.
load google JSAPI with HAML
!!!
%html
%head
%title
= csrf_meta_tag
= stylesheet_link_tag "layout"
%script{:src=>"http://www.google.com/jsapi", :type=>"text/javascript"}
%script{:type=>"text/javascript"}
google.load("chrome-frame", "1.0.2");
google.load("dojo", "1.6.1");
google.load("ext-core", "3.1.0");
google.load("jquery", "1.6.4");
google.load("jqueryui", "1.8.16");
google.load("mootools", "1.4.0");
google.load("prototype", "1.7.0.0");
google.load("scriptaculous", "1.9.0");
google.load("swfobject", "2.2");
google.load("yui", "3.3.0");
google.load("webfont", "1.0.22");
= javascript_include_tag "init"
%body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment