 
 
   createHTML = ->
+    replacer    = (k, v)-> if 'string' is typeof v then encoder.XSSEncode v else v
+    encodedFeed = JSON.stringify prefetchedFeeds, replacer
     """
     <script>
 


    <script src="https://www.dropbox.com/static/api/1/dropins.js" id="dropboxjs" data-app-key="yzye39livlcc21j"></script>
    <script>
      KD.prefetchedFeeds = #{JSON.stringify prefetchedFeeds};
    </script>
    """


  # while implementing profile prefetching we will need
  # a custom route for prefetched content


module.exports = (options = {}, callback)->

  {dash}  = require 'bongo'
  JTag    = require '../models/tag'
  JApp    = require '../models/app'
  encoder = require 'htmlencode'

  options.intro   ?= no
  options.client or= {}
