emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths
@ 2013-10-13 18:39 Iannis Zannos
  2013-10-14 17:14 ` John Kitchin
  2013-12-03 10:03 ` Samuel Loury
  0 siblings, 2 replies; 6+ messages in thread
From: Iannis Zannos @ 2013-10-13 18:39 UTC (permalink / raw)
  To: emacs-orgmode

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

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: 2040 bytes --]

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

* Re: Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths
  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
  2013-10-15  0:34   ` John Kitchin
  2013-12-03 10:03 ` Samuel Loury
  1 sibling, 1 reply; 6+ messages in thread
From: John Kitchin @ 2013-10-14 17:14 UTC (permalink / raw)
  To: Iannis Zannos; +Cc: emacs-orgmode@gnu.org

[-- 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 --]

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

* Re: Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths
  2013-10-14 17:14 ` John Kitchin
@ 2013-10-15  0:34   ` John Kitchin
  2013-10-15  8:04     ` Sebastien Vauban
  0 siblings, 1 reply; 6+ messages in thread
From: John Kitchin @ 2013-10-15  0:34 UTC (permalink / raw)
  To: Iannis Zannos; +Cc: emacs-orgmode@gnu.org

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

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 <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 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: 4725 bytes --]

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

* Re: Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths
  2013-10-15  0:34   ` John Kitchin
@ 2013-10-15  8:04     ` Sebastien Vauban
  2013-10-15 12:47       ` John Kitchin
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastien Vauban @ 2013-10-15  8:04 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello John,

John Kitchin wrote:
> 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.

In this case, instead of special link handling, I'd have used something which
already exists:

--8<---------------cut here---------------start------------->8---
This file was exported on src_emacs-lisp{(format-time-string "%Y-%m-%d at %H:%m %p")}.

The answer to 2 + 3 is src_emacs-lisp{(+ 2 3)}.
--8<---------------cut here---------------end--------------->8---

Or is there a reason for doing it with links?

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths
  2013-10-15  8:04     ` Sebastien Vauban
@ 2013-10-15 12:47       ` John Kitchin
  0 siblings, 0 replies; 6+ messages in thread
From: John Kitchin @ 2013-10-15 12:47 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode@gnu.org

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

On Tue, Oct 15, 2013 at 4:04 AM, Sebastien Vauban
<sva-news@mygooglest.com>wrote:

>
>
That is a nice feature I had forgotten about!

When I export your snippet to html I get this:
<p>
This file was exported on .
</p>

<p>
The answer to 2 + 3 is .</p>
</div>

Is there some trick to make them evaluate? Probably I have set a variable
in org-mode to not evaluate code on export, because I usually do not want
that.

I could type C-cC-c on the src, which puts the result next to it like =5=,
which then is exported to the html.

The links are clickable, show the output in the minibuffer, and are
evaluated at export time.  These are two slightly different ways to solve
the problem. Also, you could do fancier things with the filter approach
like make tooltips with the original code snippet, etc...

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

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

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

* Re: Dynsite: easier configuration of projects, with config.or instead of emacs lisp and dynamic relative paths
  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
@ 2013-12-03 10:03 ` Samuel Loury
  1 sibling, 0 replies; 6+ messages in thread
From: Samuel Loury @ 2013-12-03 10:03 UTC (permalink / raw)
  To: Iannis Zannos, emacs-orgmode

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

Hi,
Iannis Zannos <zannos@gmail.com> writes:

> I'd like to present my project Dynsite for orgmode here
I just tested it. It is really cool.

Thanks!

-- 
Konubinix
GPG Key    : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 489 bytes --]

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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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