   subCatId = BootstrapMagic.dictionary.currentSubCategory.get()
   return _.find bootstrap_magic_variables, (group) -> group._id is subCatId
 
+getSearched = ->
+  console.log "fm: ", flattenedMagic[item]
+  console.log "fmv: ", flattenedMagicValues
+
+  items = _.map flattenedMagic, mapVariableOverrides
+  searchFilter = _.filter items, (obj) => obj._id == searchTerms.get()
+  console.log "searched: ", searchFilter
+
 Template._bootstrap_magic.onCreated ->
   BootstrapMagic.start() if BootstrapMagic.start
 

  "searchInactive" : -> !searchTerms.get() 

Template._bootstrap_magic.events
  'keyup .magic-search' : (e) -> searchTerms.set e.currentTarget.value

  'click .magic-filter-item' :(e) ->
    $filter = $(e.currentTarget)

  for item in group.data
    flattenedMagic[item._id] = item
    flattenedMagicValues[item._id] = item.value

###
# EXPORTS
