Say you want to request a collection from the server in backbone.js, but don't want to receive every single item available. Instead, you want to receive only the first 100 items. Well, jQuery.ajax options can be passed directly as fetch options. docs
So, when you want to fetch the collection call the following:
instance_of_your_collection.fetch({data: {count: 100}});
If there are problems with the above, try parameterizing the data:
instance_of_your_collection.fetch({data: $.param({count: 100})});
On the server side, if you are using the Slim Framework with PHP, you can check the parameters like so:
$app->request()->params('count');
After one hack to many, I've decided to abandon my WordPress installation on Dreamhost and create my own lightweight replacement. WordPress is just too large a target for hackers and comment spammers making a small blog a chore to maintain and backup.
Thus, Filestack was born. It's an open source, Apache 2.0 licensed, blog platform built on Django.
Here's it's raison d'être:
- Easy content storage with files (back up is painless)
- Single user
- Basic CMS features: Scheduled publishing, Categories, Tags, etc...
- WYSIWYG HTML editor
- No destructive actions, like content deletion, available via HTTP
- Quick serving of a WordPress export file
Bonus Features:
- Themeable and with Django templates
- File upload helper
- Encapsulated Django app with quick installation
Filestack was built with Python, Django, jQuery, 960.gs, fancybox, and TinyMCE.
You can find the source code on GitHub.
Screenshots:
You are looking at it. 8BitRobot.com is running Filestack with the default Newsprint theme.