[Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

Oliver Gorwits oliver.gorwits at oucs.ox.ac.uk
Fri Sep 5 00:11:52 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Daniel,

Daniel McBrearty wrote:
> one question though, for the hard of understanding (me) : is the 
> schema layout exposed to the client side js in any way?

Not especially, no.

The way LFB works is to poke at your DBIx::Class model(s) during the
request handling phase, and generate a data structure with all kinds
of information about the schema.

This is used by templates in the View to customize the Javascript
which is then sent to the browser. What the browser receives is
essentially custom-written Javascript for that schema, but there's
no knowledge of the schema.

You can of course see the Javascript generated in the HTML source.
You can also see the data structure I mentioned above by retrieving
a path like /<db>/<table>/dumpmeta - this will return a blob of JSON
which describes what LFB needs to know to write the UI for that table.

I hope that helps,

regards,
oliver.
- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIwGs42NPq7pwWBt4RAtdEAKCwU+OLHu6QXgySNXjeO3HEZoc43gCePf5A
n9/E4XgDgY8znq56uUUatBQ=
=ZCZi
-----END PGP SIGNATURE-----



More information about the Catalyst mailing list