kidwm / grunt-ssi

Grunt Plugin to compile HTML with SSI into static HTML pages
MIT License
9 stars 9 forks source link

ability to load Server Side Includes templates from the web #11

Open NeoAlchemy opened 10 years ago

NeoAlchemy commented 10 years ago

I'd like to be able to load SSI templates from the web instead of it being relative to my local files.

Here is a sample of what i was thinking but open to other ideas:

ssi: { options: { cache: 'all', baseDir: 'http://sample.com' }, myTarget: { files: [{ expand: true, src: '**/index.html', ext: '.html' }] } },

anguspiv commented 10 years ago

I've discussed a similar issue, of where it would be nice to process some includes, locally, and then also have some includes be parsed from a remote source. I think that allowing an array of baseDir, similar, to grunt-connect, would be a good solution. Allowing the directories to be processed in order or priority.