   can be used to access the resources from the platform.  For example, the
   equivalent to android.R.layout.simple_list_item_1 is:
 
-    (resolve-resource :layout :android/simple_list_item_1)
+    (get-resource :layout :android/simple_list_item_1)
 
   The name portion of the name argument will be converted to a string and any
   hyphens or periods will be transformed to underscores.  Note that hyphens are

                      (string/replace \. \_))]
      (symbol (str package ".R$" type "/" name)))))

(defmacro resolve-resource
  "Resolves the resource ID of a given type with the given name.  For example,
  to refer to what in Java would be R.string.my_string, you can use:

    (resolve-resource :string :my_string)

  The type should be a keyword corresponding to a resource type such as
  :layout, :attr, or :id.

; this software.

(ns neko.resource
  "Provides utilities to resolve application resources."
  (:require [clojure.string :as string])
  (:use [neko.init.options :only [*package-name*]]
        [neko.context :only [context]]))
