Jump to content

Somewhat isomorphic possible?


joe_g
 Share

Recommended Posts

Heyhey,

Writing entirely isomorphic (http://nerds.airbnb.com/isomorphic-javascript-future-web-apps/) websites with processwire is not possible. But are there any steps that could be taken in that direction? 

I write a lot of double code (both and client and server) because I want to use PW, but control what parts gets loaded where with ajax. Currently I use crossroads for client side routing. It's a bit of a mess with the double logic.

Maybe the idea might be a bit outlandish, but I kind of would want to export the inclusion logic (what get rendered where) to javascript so I only have to write the server including in one place (x->render() in page y, etc). But maybe there are better ways to approach this. I figure I'm not the first to run into this issue. I'm hoping there would some tricks to make this a bit easier, or at least a bit more DRY, without abandoning PW.

J

(This is an attempt to rephrase an old question (https://processwire.com/talk/topic/6436-ajax-and-caching-structural-problem/) in a better way :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...