+rcategory = /category=(\w+)/
+$(document).on 'pageinit', "#page-tags", (ev, ui) ->
+ category = rcategory.exec($(this).attr('data-url'))
+ if category? and category[1]?
+ $(this).Readings 'list',
+ category: category[1]
+ url: Readings.config.get('wlurl') + "/api/#{category[1]}"
+ filter: (Readings.config.get('show_filter').indexOf(category[1]) >= 0)
+ mapper: (rec) -> new Readings.Tag(rec, category[1])
+ dividers: (Readings.config.get('show_dividers').indexOf(category[1]) >= 0)
+ else
+ alert 'no category in query string'
\ No newline at end of file