frabcus / judgmental

UK case law
http://judgmental.org.uk/
16 stars 4 forks source link

Be a little bit dynamic #35

Closed chris321 closed 11 years ago

chris321 commented 13 years ago

At present we need to rebuild the entire site every time we want to make a small modification to pages but not judgmentts, eg. the menu, title, footer, google analytics etc. This is obviously rubbish and we should probably instead generate a marked up html fragment for judgments and use some server side inclusion.

chris321 commented 13 years ago

To clarify: I'm not suggesting doing anything like making any database queries or such here (at least not yet).

frabcus commented 13 years ago

I recommend Varnish (a good caching reverse proxy) and Edge Side Includes (a W3C standard).

They are very fast and light. http://www.varnish-cache.org/trac/wiki/ESIfeatures

You can do things like cache a page, but just include the "Hello, Francis Irving" bit with an ESI.

Obviously copes well with headers/footers...

Francis

On Sat, Jun 18, 2011 at 05:39:51AM -0700, chris321 wrote:

At present we need to rebuild the entire site every time we want to make a small modification to pages but not judgmentts, eg. the menu, title, footer, google analytics etc. This is obviously rubbish and we should probably instead generate a marked up html fragment for judgments and use some server side inclusion.

Reply to this email directly or view it on GitHub: https://github.com/frabcus/judgmental/issues/35

doubi commented 11 years ago

Done! New ESI versions of docs just uploading now.

I think we'll outgrow this fairly soon actually, but it's a nice, technologically-neutral way of doing templating :)