Thank you for the explanation: On 22 May 2014, at 1:54 am, Stephan Beal <sgb...@googlemail.com> wrote:
> On Wed, May 21, 2014 at 5:45 PM, Igor de Oliveira Couto <i...@semperuna.com> > wrote: > The HTML used in the web interface of Fossil is... well... let's just say, > "not optimal". Although the web interface is sufficiently functional, it > could do with an upgrade - ie, use proper html5 elements, make use of a > responsive layout, etc. > > Short answer: it's not feasible to separate these in the current code basis. > They are bound _very closely_ at the C level, at the printf-call level, and > argument re-ordering (sometimes needed for non-English translations) is not > possible with this API. That is a shame... > That said, one of the reasons libfossil was started was to resolve exactly > that limitation, and libfossil has several demos in place where all of the > display code/logic is 100% separated from the core library: > > http://fossil.wanderinghorse.net/repos/libfossil/cgidemo/index.cgi/ > > In fact, in those, demos, the display logic is two API levels removed from > libfossil: > > libfossil ==> script engine bindings ==> HTML code generated from script code Great! - that sounds more logical. > I saw that there were (at least) a couple of feature request tickets, that > ask about separating the html from the main code base - to make customisation > easier. These tickets, however, seem to be quite old. Does anyone know > whether there are any plans to do that? > > For better or worse, it simply cannot be done on the current code basis. It > would require replacing "nearly everything," as well as adding infrastructure > for i18n. libfossil is, however, far enough along that it can be used for > many types of applications (no network support being the main shortcoming > right now), so you might find something interesting over there. Is development now focused on libfossil, rather than fossil itself? > If not, I might spend some time trying to *really* customise the interface by > using some brute-force javascript > > IMO: don't bother. It will end in pain and frustration and so many ugly hacks > that you won't be able to sleep at night. *hehehe* I am a Designer, so the current interface is keeping me awake and giving me nightmares already... ;-) I might have a hack at it, if I have a chance - ie., might try to produce a nicer skin, using jquery (from cdn) to rewrite (most of) the DOM, as needed. I will let you know if I end up with anything usable. Once again, many thanks for the information, and for welcoming me into the Fossil community. Kindest regards, -- Igor Couto Sydney, Australia
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users