emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* publishing css using babel + sass and (new) exporter
@ 2013-04-09 23:20 Jean Schurger
  2013-04-12 17:58 ` Rick Frankel
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Schurger @ 2013-04-09 23:20 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 815 bytes --]

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.
Most of the time, it product html. I did some tests, using the ascii
exporter (thinking that ascii would be raw enough) produce an great
ascii document.
Any clue about how I can publish a 'simple' CSS file.

Jean.

 
-- 
Jean Schurger
http://schurger.org
030A C5CB 269B E2DB FE8A  F6FE 2749 CC01 AFBA 3712


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: publishing css using babel + sass and (new) exporter
  2013-04-09 23:20 publishing css using babel + sass and (new) exporter Jean Schurger
@ 2013-04-12 17:58 ` Rick Frankel
  0 siblings, 0 replies; 2+ messages in thread
From: Rick Frankel @ 2013-04-12 17:58 UTC (permalink / raw)
  To: Jean Schurger; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-12 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 23:20 publishing css using babel + sass and (new) exporter Jean Schurger
2013-04-12 17:58 ` Rick Frankel

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).