Google Groups Home
Help | Sign in
Message from discussion Is there any tutorial available
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Ryan Mulligan  
View profile
 More options 1 Jul, 02:52
From: "Ryan Mulligan" <r...@ryantm.com>
Date: Mon, 30 Jun 2008 20:52:03 -0500
Local: Tues 1 Jul 2008 02:52
Subject: Re: Is there any tutorial available

On Sun, Jun 29, 2008 at 6:16 AM, Harry <blogdri...@gmail.com> wrote:

> so ideally I hope it'll be great that if I can use staticmatic as an
> standard lib in my applicaion,like this:

> #in my own rb application code.
> require'staticmatic"

> #some code to generate txt(haml) file to staticmatic content folder;

> Staticmatic.compile(oneofmysite)

Well if you are using the latest trunk version of Staticmatic you can look
at the rake task inside it:
require File.dirname(__FILE__) + "/../staticmatic"

task :build do
  require File.dirname(__FILE__) + "/../staticmatic/builder"
  StaticMatic::Builder.build StaticMatic::Base.new(".")
end

If you have 0.9.0 you can do the following in ruby (notice the backticks I'm
executing a shell command):

`staticmatic build #{path_to_one_of_my_sites}`

These commands will rebuild everything on the site that has been modified in
src.

> consider the search engine has created an very strange and unfair
> ecosystem, this might mean a big market in the future,so if you guys
> can ,can you add some muti-site manage function to staticmatic, that
> also will be cool!

What kind of multiple site management are you looking for?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google