From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: publishing css using babel + sass and (new) exporter Date: Fri, 12 Apr 2013 13:58:10 -0400 Message-ID: <20130412175810.GB35752@BigDog.local> References: <1365549656.3724.11.camel@blackpage.schurger.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQiEq-0000Ib-FC for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 13:58:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQiEk-0006LB-7P for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 13:58:16 -0400 Received: from [204.62.15.78] (port=49408 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQiEk-0006L1-40 for emacs-orgmode@gnu.org; Fri, 12 Apr 2013 13:58:10 -0400 Content-Disposition: inline In-Reply-To: <1365549656.3724.11.camel@blackpage.schurger.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jean Schurger Cc: emacs-orgmode@gnu.org On Tue, Apr 09, 2013 at 07:20:56PM -0400, Jean Schurger wrote: > Hi, > > I'm a new and innocent org-mode user, and I would like to use > org-mode exporter (the new one) to publish static web pages. > > The 'html' part is OK, but as I hate writing CSS, I'm using babel + sass > to build CSS code. > > For example: > > #+BEGIN_SRC sass exports: results > body > background: black > #+END_SRC > > #+RESULTS: > : body { > : background: black; } > > That's perfect ! > > My question now: > > How should i configure my project-alist entry to publish resultant CSS > code. I would do something like the following: #+BEGIN_SRC sass :exports none :results file :file "sass.css" body background: black #+END_SRC and then add a static rule for css files to your publishing function. That way you can embed the css into the same file as the org file to be converted to html rick