 
         @template = updated_template.replace(replace_regex, new_attr_string)
 
-  _setup_interpolated_vars: ->
-
-    template_match = new RegExp(/\$[^\"]*/g)
+  _setup_interpolated_vars: =>
+    template_match = new RegExp(/{{([^{}]+)}}/g)
 
     new_template = @template.replace(template_match, (match, p1) =>
-      class_name = match.split(".")[0].substr(1)
-      attribute = match.split(".")[0]
-      if class_name == @snake_name
-        @attributes[match.split(".")[1]]
+      class_name = match.split(".")[0].substr(2)
+      attribute = match.split(".")[1].slice(0, - 2)
+
+      if class_name == @snake_name && (typeof @get(attribute) != 'undefined')
+        @get(attribute)
+      else
+        match
     )
 
     @template = new_template
+
+  _set_opts_to_attributes: ->
+    if @opts?
+      $.each @opts, (key, val) =>
+        @set key, val

    @attributes = {}
    template = @opts.template || App[@constructor.name].template

    if @opts?
      $.each @opts, (key, val) =>
        @set key, val

    @uuid = @opts.uuid || @attributes.uuid || App.UUID.generate()
    @id = @opts.id || @attributes.id

      cloned_template = $(@template).clone()
      updated_template = $("<div />").append($(@template).clone()).html()

      if replace_string? && replace_string.length
        replace_regex = new RegExp(replace_string)

