pjb3 (owner)

Revisions

gist: 192468 Download_button fork
public
Public Clone URL: git://gist.github.com/192468.git
Embed All Files: show embed
extjs.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
run "cd public/javascripts; curl -L -o ext.zip http://www.extjs.com/products/extjs/download.php?dl=extjs3"
run "cd public/javascripts; unzip ext.zip"
ext_dir_name = File.basename(Dir["public/javascripts/ext-*"].first)
run "cd public/javascripts; mv #{ext_dir_name} ext"
run "rm public/javascripts/ext.zip"
 
file "app/views/layouts/extjs.html.erb", %q{<html>
<head>
<title>ExtJS</title>
<%= javascript_include_tag :defaults %>
<%= stylesheet_link_tag "../javascripts/ext/resources/css/ext-all.css" %>
<%= javascript_include_tag "ext/adapter/prototype/prototype.js" %>
<%= javascript_include_tag "ext/adapter/prototype/scriptaculous.js" %>
<%= javascript_include_tag "ext/adapter/prototype/effects.js" %>
<%= javascript_include_tag "ext/adapter/prototype/ext-prototype-adapter.js" %>
<%= javascript_include_tag "ext/ext-all-debug.js" %>
<%= yield :html_head %>
</head>
<body>
<%= yield %>
</body>
</html>}