Plain HTML example?
This could be a stupid question, since i am an amateur at coding really, don't know php. I am trying to figure out how to try this out with a static site generator, but can't figure it out.
Is it possible to show a simple example using vanilla HTML? This could be contradictory to the intention of pjax/responsive content, but this whole concept seems really nice.
Thanks
The lib is not designed with that purpose in mind. It could be adapted - though I don't see a way to do so that would remain generic. For example, it could rewrite the URL for it's ajax request, mapping width breakpoints to different subdirectory paths containing versions of the same page, etc - but all that would be very site-specific. And you'd have to make all those static versions of the same page for different widths. Horrible.
My suggestion: it would be less effort (and far more educational) to learn some basic PHP/Python/NodeJs/whatever to support the lib...
Hi again, and thanks for the explanation.
The reason i asked about a HTML version, was so i could to try to implement it to this static site generator that uses twig etc. https://github.com/kolber/stacey
Do you think this would be possible? If so i could probably try to get some help from a friend :)
Thanks