Tags Library
Tagging is a Web 2.0 feature in which, instead of static categories, items are loosely grouped according to arbitrary words referred to as tags.
Examples
import('lib-tags')
Tagging Something
addTags(obj, ['animal','dog']))
Retrieve Items With a Tag
storage.coll.filter(tagged('dog')).limit(10).forEach(function(item){
printp(item.text)
})
Accessing an object's tags
accessTags(obj).forEach(function(tag){ printp(tag) })
Get the List of Most Popular Tags
storage.tags.sortBy('-count').limit(10).forEach(function(tag){
printp(tag.name, ': ',tag.count)
})