Re: [Rest2web-develop] About the variable "body"
Brought to you by:
mjfoord
|
From: <mon...@ya...> - 2009-03-08 23:19:51
|
Hi,
Thanks for your time...
--- El dom, 8/3/09, Michael Foord <fuz...@vo...> escribió:
> De: Michael Foord <fuz...@vo...>
> Asunto: Re: [Rest2web-develop] About the variable "body"
> Para: mon...@ya..., "A list to discuss development of rest2web." <res...@li...>
> Fecha: domingo, 8 marzo, 2009 11:31
> mon...@ya...
> wrote:
> > Hi.
> >
> > First of all, thank you very much for the rest2web
> package. It is very useful for me.
> >
>
> Hi,
>
> Sorry for the late reply - I'm in the middle of conference
> season with
> waaay to much to do and too little time to do it.
>
> > I'm using the definition of "body" in the "uservalues"
> to separate the content from the rest of the stuff
> (restindex).
> >
> >
>
> I don't fully understand the question below.
>
I make something like this (in my index.txt):
restindex
[bla, bla, bla, ...]
/restindex
uservalues
body: ./contents/some_content.txt
/uservalues
Where the file "./contents/some_content.txt" are the real contents of the page...
> > I would like to reference the original contents file
> (assigned to the variable "body") from my website to create
> a link to download the original file contents in
> reStructuredText format ....
> >
> > How do I introduce a variable that contains the file
> name of content ("body") in order to handle it in the html
> template?
> >
> >
>
> Do you want a link to the original text file that creates
> the output?
>
Exactly: i want a link to the file "./contents/some_content.txt". I know how to copy the contents file to the output (ussing "file: ./contents/some_content.txt" but how can i construct a link in the html output file?. I need a variable with the value
"./contents/some_content.txt" in order to make the template... Exists this variable?
Ruben
> Michael
>
> > Best regards.
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Open Source Business Conference (OSBC), March 24-25,
> 2009, San Francisco, CA
> > -OSBC tackles the biggest issue in open source: Open
> Sourcing the Enterprise
> > -Strategies to boost innovation and cut costs with
> open source participation
> > -Receive a $600 discount off the registration fee with
> the source code: SFAD
> > http://p.sf.net/sfu/XcvMzF8H
> > _______________________________________________
> > Rest2web-develop mailing list
> > Res...@li...
> > https://lists.sourceforge.net/lists/listinfo/rest2web-develop
> >
>
>
> --
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/blog
>
>
>
|