Re: How does clearsilver find path to cst files

Brandon Long <[email protected]> Thu, 30 Apr 2009 12:57:48 -0700
Newsgroups gmane.text.clearsilver.general
Organization Fiction L Networks
Message-ID <20090430195748.GC19144@bl1>
CS.parseFile corresponds to cs_parse_file:

http://www.clearsilver.net/docs/c_api.hdf#cs_parse_file

which uses hdf_search_path to find the path for the file.  This is also
used by <?cs include: ?> 

hdf_search_file uses the children of the HDF key "hdf.loadpaths" as a
list of paths to search.

Brandon

On 04/30/09 vsapre80 uttered the following other thing:
> Hi,
> 
> ClearSilver is GREAT !!!
> 
> I have a question regarding how ClearSilver finds out about a '*/cst'
> file when we do, cs.parseFile("somename.cst")
> 
> currently we found that when we moved our project (cst file and python
> file) to another folder, the call to "cs.parseFile("somename.cst")"
> started failing...even though the 'cst' file was in the same folder as
> the python file containing the above call.
> 
> We are now specifying the absolute path to the 'cst' file...and it
> works fine, but I just want to find out why it was failing earlier.
> 
> any pointers?
> 
> Thanks and best regards,
> Vishal
> 
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
-- 
  "That guy at the variety store who short-changes you may be a loser, but
     he's also the son of a god.  A god.  One you've never heard of.  One
     whom nobody worhips anymore.  Can you really blame the guy for being
     bitter?"  -- PLIF 2001-01-15  http://www.plif.com/archive/wc256.gif