-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 04.02.2010 09:36, schrieb zigoto:
> Hi all,
> 
> Here's my problem.
> 
> I have a python program which generate a substitution.txt file, here's
> a minimalistic example :
> 
> ---------------------
> .. |webserver_conf_file| replace:: ../../parts/webserver/
> webserver.conf
> ---------------------
> 
> Now in my webserver.rst file I would like to include this file with
> the literalinclude directive in such a way:
> 
> ---------------------
> .. include:: substitutions.txt
> 
> Webserver
> =========
> 
> here's the configuration file
> 
> .. literalinclude:: |webserver_conf_file|
> ---------------------
> 
> Unfortunatly it does not work that way :-(
> 
> Is there a workaround to do it?
> Thanks for your replies

I'm afraid that this won't work; literalinclude (like most directives) doesn't
treat its arguments are reStructuredText.

Maybe you can work with a symbolic link?

Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkuBShUACgkQN9GcIYhpnLCL2ACcCbm5E3nTTemq5Rx5X922VP3v
ETsAoKZPEr5X5jeY4CHEG15hAu5jPMnF
=Lsdk
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to