laktek / punch

A fun and easy way to build modern websites
http://laktek.github.com/punch
MIT License
1.17k stars 107 forks source link

Ability to add self-contained widgets (css, js, template) #109

Open 0xgeert opened 10 years ago

0xgeert commented 10 years ago

First off, this looks awesome!

I'm looking for a way to integrate widgets into Punch. With some pointers as to where to start, I might be able to pull-off a pull-request if there's interest.

What I mean with a widget (of component) is a self-contained block of information that can be embedded in a page, which as an asset contains all the information needed to render it. i.e.: template, css, javascript.. Each Widget has it's own json for configuration (e.g.: where to get the data from).

Is this something more people see a usage for?

constantx commented 10 years ago

I actually implementing componentjs on my personal site right now :) That said, I'm not 100% sure about it being a part of the core punch generator ...

constantx commented 10 years ago

@gebrits if you're interested :) https://github.com/constantx/constantx.github.io/tree/master/_src