Hi,<br><br>Maybe I describe my trouble not clear. I had a web site with a lot of dynamic .kl1 pages, and my task was showing to user's browser .html pages, not .kl1. I found a solution for that problem -- I fixed one line in translat.c file:<br>
<br>static int is_a_script(const char *filename)<br>{<br> static const char *script_ext[] = { <br> ".klone", ".kl1", ".klc", <br> ".klx", /* C++ page */ <br> ".html", /* my code */<br>
NULL <br> };<br> const char **ext;<br><br>...<br><br>It works well -- now I have a .html files with C code :)<br>I know that better way is change config filet but I can't find info about adding new built-in extensions to klone. In line 267 of translat.c file I found that text:<br>
<br> /* should choose the right translator based on file extensions or config */<br> if(is_a_script(pti->file_in))<br> {<br> ...<br><p>But I can't find any call of functions that have deal with config file, so I think that changing built-in script extensions via config files does not implemented yet. I use klone v.2.1.1</p>
<p></p><p>PS. </p><p>Sorry for my bad English :)</p><p>Alex</p>