           do: [selected: :selected], else: []
         option(item, [value: item] ++ selected) 
       end
+    end
+  end
+
+  def build_item(%{type: :script, contents: contents}, _resource, model_name, _errors) do
+    IO.puts "build type script, #{contents}"
+    script do 
+      text contents
     end
   end
 

    end
  end

  #################
  # Functions


        var!(input_blocks, ExAdmin.Form) = [] 
        unquote(contents)
        items = var!(input_blocks, ExAdmin.Form) |> Enum.reverse
        # IO.puts "----------------------------"
        # Enum.each items, fn(i) -> 
        #   IO.puts "----> form_view item: #{inspect i}"
        # end
        # IO.puts "----------------------------"
        ExAdmin.Form.build_form(conn, var!(resource), items, var!(params))
      end
    end
