bin/static in static-0.0.1 vs bin/static in static-0.1.0
- old
+ new
@@ -47,22 +47,44 @@
include Static
::Rbml::Processor.run(File.dirname(__FILE__)+'/cli.rbml')
__END__
-$active_site = load_site('please')
-paginate :static
+$active_site = load_site('static')
+destroy $active_site.site_loc
+$active_site.generate
+set_layout($active_site.info['layout'], false)
+$active_site.build :contents
+$active_site.build :blueprint
+$active_site.info['layout']='default'
+$active_site.info['username'] = 'e'
+$active_site.info['server'] = {}
+$active_site.info['server']['link'] = 'http://newqdev.com'
+$active_site.info['server']['address'] = 'newqdev.com'
+$active_site.info['server']['directory'] = '~/newqdev.com'
+$active_collection = $active_site.start_collection 'news', ['date', 'headline', 'entry']
+$active_site.generate
+destroy $active_site.site_loc
+$active_site.generate
+#system "vi #{$active_collection.home}attributes"
+5.times do
+ puts $active_collection.add_entry
+ $active_collection.save_listing
+ gets
+end
+$active_site.info['feeds'] = ['news']
+$active_site.save_info 'site.info'
+publish_feeds true
-$active_site.build :all
+__END__
#system "#{$ENV['EDITOR']} #{$active_site.home}"
paginate :the_copy
destroy $active_site.site_loc
$active_site.generate
$active_site = start_site('static')
$active_site.load_info
$active_site.load_pages
-$active_site.start_collection 'news', ['date', 'headline', 'entry']
$active_site.start_collection 'blog', ['date', 'title', 'entry']
$active_site.build(:contents)
$active_site.info['layout'] = 'default'
set_layout($active_site.info['layout'], false)