Re: How do I send an HDF dataset to a ClearSilver template?
Brandon Long <[email protected]> Thu, 17 Sep 2009 15:37:00 -0700
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20090917223700.GB12115@bl1> |
There is no way for the template to read the file.
Code has to generate the HDF before its handed to the CS to render.
Somewhere in the trac source code, there is a call to neo_util.HDF() to
generate the HDF data structure. That data structure is passed to the
template when the CS is created (neo_cs.CS(hdf)). Its that HDF you need
to modify. Using an HDF file is usually only for when you've
pre-generated some static data into a file, normally you would just set
your data directly on the HDF.
Brandon
On 09/17/09 Tobi Lehman uttered the following other thing:
> I would do that, but the problem is that the cs template doesn't have any
> hdf dataset. I am looking for a way to wire up the template to a dataset,
> and so far the documentation about that appears nonexistent, everything
> I've read about it assumes there is already an hdf file.
>
> Ignoring the particulars of trac, how do I get a template to pull from an
> hdf file? I know the syntax and can generate the file, but I am missing
> how to get the template to read that file.
>
> Thank you for the response,
> -Tobi
--
"Patriotism is the virtue of the vicious"
-- Oscar Wilde
http://www.fiction.net/blong/