From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths Date: Mon, 14 Oct 2013 20:34:03 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec520efabd7c4af04e8bcbd04 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVsaN-00049w-66 for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 20:34:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVsaK-0003xt-Mh for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 20:34:07 -0400 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:45834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVsaK-0003xk-9t for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 20:34:04 -0400 Received: by mail-pa0-f45.google.com with SMTP id rd3so8249037pab.18 for ; Mon, 14 Oct 2013 17:34:03 -0700 (PDT) In-Reply-To: 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: Iannis Zannos Cc: "emacs-orgmode@gnu.org" --bcaec520efabd7c4af04e8bcbd04 Content-Type: text/plain; charset=ISO-8859-1 I implemented a version of elisp links to dynamically generated content at export time here: http://jkitchin.github.io/blog/2013/10/14/Lisp-links-in-org-mode-to-dynamically-generated-content/ I am not sure it was you are thinking about, but maybe it could give you some ideas. 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 Mon, Oct 14, 2013 at 1:14 PM, John Kitchin wrote: > 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 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: >> (ob:insert-template "page_header.html") >> 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 >> > > --bcaec520efabd7c4af04e8bcbd04 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I implemented a version of elisp links to dynami= cally generated content at export time here: http://jkitchin.github.io/blog/2013/10/14/Lisp-links-in-org-mode-to-d= ynamically-generated-content/

I am not sure it was you are thinking about, but maybe it could g= ive you some ideas.

j

John

-----------------------------------
John = Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Enginee= ring
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803<= br>http://k= itchingroup.cheme.cmu.edu



On Mon, Oct 14, 2013 at 1:14 PM, John Ki= tchin <jkitchin@andrew.cmu.edu> wrote:
It seems like this is something that = could be done with a filter pretty easily. Just define a lisp link, and wri= te a filter that handles links of that type.

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

basically you check the type of link, and set the output accordin= gly. 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<= br>41= 2-268-7803
http://kitc= hingroup.cheme.cmu.edu



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

Hello,=A0

I'd like t= o 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 simpli= fies the task of creating project configurations for org-publish. One can d= efine 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 o= rg-publish scheme).=A0

The documentation is here:=A0http://iani.github.io/dynsite/
=
And the source code + documentation is here:=A0https://github.com/iani/dynsite<= /div>

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.=A0

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. =A0The wonderful package o-blog is largely= based on it. (https://github.com/renard/o-blog). The format used by o-blog is:=A0<= /div>
<lisp>(ob:insert-template "page_header.html")</lisp= >=A0
Possibly one could use some other format like {lisp}.= ...{/lisp}, or something more aligned to current mark-up schemes in Org. Th= is 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 r= endered text?=A0

Iannis Zannos


--bcaec520efabd7c4af04e8bcbd04--