Fix minor wording in 'lein new' comments.

[ci skip]
This commit is contained in:
Jean Niklas L'orange 2013-12-02 03:06:30 +01:00
parent 18c53cedf6
commit f0a31e5d38
2 changed files with 5 additions and 6 deletions

View file

@ -37,7 +37,7 @@
;; A lein-newnew template is actually just a function that generates files and ;; A lein-newnew template is actually just a function that generates files and
;; directories. We have a bit of convention: we expect that each template is on ;; directories. We have a bit of convention: we expect that each template is on
;; the classpath and is based in a .clj file at `leiningen/new/`. Making this ;; the classpath and is based in a .clj file at `leiningen/new/`. Making this
;; assumption, a user can simply give us the name of the template he wishes to ;; assumption, users can simply give us the name of the template they wish to
;; use and we can `require` it without searching the classpath for it or doing ;; use and we can `require` it without searching the classpath for it or doing
;; other time consuming things. If this namespace isn't found and we are ;; other time consuming things. If this namespace isn't found and we are
;; running Leiningen 2, we can resolve it via pomegranate first. ;; running Leiningen 2, we can resolve it via pomegranate first.

View file

@ -91,11 +91,10 @@
"Get the current year. Useful for setting copyright years and such." "Get the current year. Useful for setting copyright years and such."
[] (+ (.getYear (java.util.Date.)) 1900)) [] (+ (.getYear (java.util.Date.)) 1900))
;; It'd be silly to expect people to pull in stencil just to render ;; It'd be silly to expect people to pull in stencil just to render a mustache
;; a mustache string. We can just provide this function instead. In ;; string. We can just provide this function instead. In doing so, it is much
;; doing so, it is much less likely that a template author will have ;; less likely that template authors will have to pull in any external
;; to pull in any external libraries. Though he is welcome to if he ;; libraries. Though they are welcome to if they need.
;; needs.
(def render-text stencil/render-string) (def render-text stencil/render-string)
;; Templates are expected to store their mustache template files in ;; Templates are expected to store their mustache template files in