Skip to content

Instantly share code, notes, and snippets.

{block:ListSidebar}
<div class="sidebar">
<!-- Add the following between these tags -->
<div class="sidebarunit">
<h5>Twitter</h5>
<iframe src="http://my-web-host.com/twitter.html" marginheight="0" marginwidth="0" frameborder="0" style="border:0;height:490px;width:175px;"></iframe>
</div>
<!-- end -->
</div>
{/block:ListSidebar}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My Twitter Feed</title>
</head>
<body>
<!-- Paste twitter feed here -->
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
Merb::Config[:bundle_assets] = true
= css_include_tag :reset, :master, :thickbox, :bundle => "app_bundle"
@mandula
mandula / gist:224039
Created November 2, 2009 08:56
merb_bundle_minification.rb
if Merb::Config[:bundle_assets]
Merb::Assets::JavascriptAssetBundler.add_callback do |filename|
yui = Yui.new filename , :suffix => nil, :stomp => true
yui.minify
end
Merb::Assets::StylesheetAssetBundler.add_callback do |filename|
yui = Yui.new filename , :suffix => nil, :stomp => true, :type => :css
yui.minify
end
end