all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* xmlgen.el: inclusion?
@ 2008-09-01 14:43 Phil Jackson
  0 siblings, 0 replies; only message in thread
From: Phil Jackson @ 2008-09-01 14:43 UTC (permalink / raw)
  To: emacs-devel

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

Hi,

Correct me if emacs already has this functionality, but...

I knocked up an xml generation (xmlgen, I have no imagination) tool that
I think may be handy enough for inclusion. I only use it for basic
stuff, but find I use it a lot:
    
    (xmlgen
     '(html
       (head (title "Hello"))
       (body :id "anid" :class "aclass"
        (h1 "Hello"))))
    
    =>
    
    "<html>
      <head>
        <title>Hello</title>
      </head>
    
      <body id=\"anid\" class=\"aclass\">
        <h1>Hello</h1>
      </body>
    </html>"

(The output isn't indented like that. It'll be on one line.)

I expect there are a few modules in emacs itself that might benefit from
it making big `format' statements more manageable (erm, and slower).


[-- Attachment #2: xmlgen.el --]
[-- Type: application/emacs-lisp, Size: 4287 bytes --]

[-- Attachment #3: Type: text/plain, Size: 66 bytes --]



Cheers,
Phil
-- 
 Philip Jackson
 http://www.shellarchive.co.uk

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-01 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01 14:43 xmlgen.el: inclusion? Phil Jackson

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.