On Thu, Nov 21, 2013 at 11:19 PM, Ramey, Christopher
<[email protected]>wrote:

> I've been lurking on this list for awhile now, and I've seen more than a
> few posts asking for behavior changes to the web UI. For example, the
> recent post from Michai Ramakers about switching to a single-column layout
> for the file listings (something I'd certainly like to see done, too.) The
> barrier for changes like this is that the majority of the display logic for
> those pages is hard-coded in C and compiled in. So if you wanted say, a
> single-column layout in the file list, you would not only have to take on
> that C code and the HTML it produces, you'd also need to maintain your own
> version of Fossil with said changes.
>

Good morning!

Part of the purpose of the JSON API is to make this sort of thing possible.
Here are some proof-of-concept demos which build off of it:

http://fossil.wanderinghorse.net/repos/fwiki/editor/

however, some functionality cannot be implemented using JSON because they
don't fit in JSON's world view (e.g. upload of binary data) or because they
require a local checkout (e.g. a commit operation).

A couple summers ago i experimented with adding "custom pages" support to
fossil, but that lack of a full-fledged scripting language baked into
fossil made it unfeasible (TH1 is far too limited for that). In the mean
time there is a TCL binding which could be used as a basis for such a
feature.

My question is this: Is there any intention (or even interest) in
> abstracting out the display logic for the web UI pages so that changes can
> be made outside of the compiled code? Is that the ultimate intention of the
> JSON API, to make all the web UI pages javascript powered JSON consumers?
>

Yes, there is intention/interest, and and yes, that is a primary goal of
the JSON API.

The limiting factors are time and energy :/. Last summer i started work on
splitting Fossil into a library API, which will enable "all sorts of
things" to be built off of it. Much of the core lib-level functionality is
there, but much is still missing (e.g. checkout/checkin, and no
network-related functionality). Any support in helping move that along
would be much appreciated. :)

http://fossil.wanderinghorse.net/repos/libfossil/index.cgi/wiki/home

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Since tyranny's the only guaranteed byproduct of those who insist on a
perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to