emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: Jean Schurger <jean@schurger.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: publishing css using babel + sass and (new) exporter
Date: Fri, 12 Apr 2013 13:58:10 -0400	[thread overview]
Message-ID: <20130412175810.GB35752@BigDog.local> (raw)
In-Reply-To: <1365549656.3724.11.camel@blackpage.schurger.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

      reply	other threads:[~2013-04-12 17:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 23:20 publishing css using babel + sass and (new) exporter Jean Schurger
2013-04-12 17:58 ` Rick Frankel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130412175810.GB35752@BigDog.local \
    --to=rick@rickster.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jean@schurger.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).