r/coffeescript • u/Piercey4 • Sep 19 '14
French Press: If React was designed for Coffee-Script.
Over the past couple weeks I have been working on an framework similar to react, but much smaller, and designed for coffeescript.
It's designed to be the most terse client side templating engine (You pretty much just write coffeescript in your templates), and i'd love some feedback so I could improve it further.
Feel free to pm me questions, post issues or simply discuss it here.
View Repo: https://github.com/DylanPiercey/FrenchPress
Although the framework is written in, and works best with, coffee-script, it is totally possible to use JavaScript effectively. For a JavaScript version of demo https://github.com/DylanPiercey/FPMusicJS/blob/master/public/js/songList.js
UPDATE There is now a beta server side renderer for express. Please give it a try! (Documentation available on homepage of repo)
2
u/marshall007 Sep 19 '14
This looks great! I'd love to see the templating engine split out into a separate module so it could be used server-side.
2
u/brotherwayne Sep 19 '14
Now this is the way to write a github library post. +1
1
u/changtimwu Sep 19 '14
If your point is to benefit from both reactjs and coffee-script, I don't think creating a new framework is a good idea. Are you going to reinvent virtual-dom and other nice features React has brought to us?
As a coffee-script fan for years, I would like to see a page/js preprocessing tool to make me write ReactJS code in coffeescript more comfortable. Just like jade-react do for Jade.