Created
November 28, 2012 20:07
-
-
Save sarsena/4163851 to your computer and use it in GitHub Desktop.
Implement HAML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
:javascript | |
var rubyArray = #{$num_array}; | |
var titleArray = #{$title_array}; | |
%script(src="../js/graph/graph.js") | |
.graph-container | |
%p This is where the graph will go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'oci8' | |
load 'configs/stg-config.rb' | |
get '/' do | |
load 'functions/function-graph.rb' | |
haml :index, :layout => :layout | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html | |
%head | |
%title Raphael Graph | |
%link(rel="stylesheet" href="/css/bootstrap.min.css") | |
%link(rel="stylesheet" href="/css/graph/global.css") | |
%script(src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js") | |
%script(src="../js/raphael-min.js") | |
%script(src="../js/g.raphael-min.js") | |
%script(src="../js/g.bar-min.js") | |
%script(src="../js/jquery.qtip-1.0.0-rc3.min.js") | |
%body= yield |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment