emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Iannis Zannos <zannos@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths
Date: Mon, 14 Oct 2013 13:14:55 -0400	[thread overview]
Message-ID: <CAJ51ETotiafK4XCy+5rqaQvRpTBYshnQbD7psJLmRC2hFVpPUQ@mail.gmail.com> (raw)
In-Reply-To: <CAEC5Jk+mc6PmMqGN+7M0qy-jX716+7PbFbh9x8fVXd9QBWn39w@mail.gmail.com>

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

It seems like this is something that could be done with a filter pretty
easily. Just define a lisp link, and write a filter that handles links of
that type.

I did something like this to selectively handle different types of links
here:
http://jkitchin.github.io/blog/2013/09/28/Changing-links-to-files-so-they-work-in-a-blog/

basically you check the type of link, and set the output accordingly. you
would ignore links that were not your lisp type.

j

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Sun, Oct 13, 2013 at 2:39 PM, Iannis Zannos <zannos@gmail.com> wrote:

>
> Hello,
>
> I'd like to present my project Dynsite for orgmode here, as I believe it
> fits in well with the currnent status of org-publish. Dynamite is a package
> that simplifies the task of creating project configurations for
> org-publish. One can define many projects in a "site" just by placing a
> config.org in any folder contained in the site, and writing the
> properties of the project as org-mode nodes. Plus, relative paths from
> subfolders to the root are provided automatically (no need to write a
> separate property config for each level as in the latest org-publish
> scheme).
>
> The documentation is here: http://iani.github.io/dynsite/
> And the source code + documentation is here:
> https://github.com/iani/dynsite
>
> The code is now compatible with the 8.0+ version of org-publish. Not
> elegant code at all, but I hope it may give some useful ideas for general
> use or future directions in Org mode.
>
> And a question: Looking at export filters, I see that there is no filter
> for substituting the result of a lisp expression into the file. That would
> be extremely handy.  The wonderful package o-blog is largely based on it. (
> https://github.com/renard/o-blog). The format used by o-blog is:
> <lisp>(ob:insert-template "page_header.html")</lisp>
> Possibly one could use some other format like {lisp}....{/lisp}, or
> something more aligned to current mark-up schemes in Org. This would open
> up many useful possibilities. Any tips on adding new filters? Or other ways
> to substitute the result of a lisp expression in the final rendered text?
>
> Iannis Zannos
>

[-- Attachment #2: Type: text/html, Size: 3430 bytes --]

  reply	other threads:[~2013-10-14 17:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-13 18:39 Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths Iannis Zannos
2013-10-14 17:14 ` John Kitchin [this message]
2013-10-15  0:34   ` John Kitchin
2013-10-15  8:04     ` Sebastien Vauban
2013-10-15 12:47       ` John Kitchin
2013-12-03 10:03 ` Samuel Loury

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=CAJ51ETotiafK4XCy+5rqaQvRpTBYshnQbD7psJLmRC2hFVpPUQ@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=zannos@gmail.com \
    /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).