Re: New Muse tags: "include" and "markup"

Michael Olson <[email protected]> Tue, 30 May 2006 09:57:04 -0400
Newsgroups gmane.emacs.wiki.general
Message-ID <[email protected]>
Stefan van der Walt <[email protected]> writes:

> Thanks for adding this functionality, Michael!
>
> One more question: how do I insert a file inside an <example> tag,
> i.e.
>
> <example>
> content of file goes here
> </example>
>
> I can't think what the markup function would be to pass to include.

Here's a custom function that should work.

(defun my-muse-publish-examplify-buffer ()
  (muse-publish-example-tag (point-min) (point-max)))

and then:

<include file="myfile" markup="my-muse-publish-examplify-buffer">

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS

_______________________________________________
emacs-wiki-discuss mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD4DBQFEfE8z+1Ho2POo0xkRAqiwAJoDH2zBBrKJStQUduH9yy17K3ANHQCXdppb
JQIaXDseajqmNNwHaLouzA==
=5bi4
-----END PGP SIGNATURE-----