Permalink
Browse files

Merge branch 'pull-up-service'

  • Loading branch information...
2 parents e6e063f + a9a314e commit d62737f793ada1c4394e6883ce865e447eec5311 @ohpauleez ohpauleez committed Feb 10, 2014
Showing with 4,547 additions and 22,545 deletions.
  1. +2 −0 NOTICES
  2. +9 −15 README.md
  3. +0 −10 app-template/.gitignore
  4. +0 −28 app-template/README.md
  5. +0 −86 app-template/src/leiningen/new/pedestal_app.clj
  6. +0 −4 app-template/src/leiningen/new/pedestal_app/.gitignore
  7. +0 −57 app-template/src/leiningen/new/pedestal_app/README.md
  8. +0 −288 app-template/src/leiningen/new/pedestal_app/app/assets/javascripts/xpath.js
  9. +0 −11 app-template/src/leiningen/new/pedestal_app/app/assets/stylesheets/project.css
  10. +0 −82 app-template/src/leiningen/new/pedestal_app/app/src/behavior.clj
  11. +0 −23 app-template/src/leiningen/new/pedestal_app/app/src/html_templates.clj
  12. +0 −85 app-template/src/leiningen/new/pedestal_app/app/src/rendering.cljs
  13. +0 −36 app-template/src/leiningen/new/pedestal_app/app/src/services.cljs
  14. +0 −3 app-template/src/leiningen/new/pedestal_app/app/src/simulated/services.cljs
  15. +0 −24 app-template/src/leiningen/new/pedestal_app/app/src/simulated/start.cljs
  16. +0 −64 app-template/src/leiningen/new/pedestal_app/app/src/start.cljs
  17. +0 −41 app-template/src/leiningen/new/pedestal_app/app/templates/application.html
  18. +0 −51 app-template/src/leiningen/new/pedestal_app/app/templates/project.html
  19. +0 −46 app-template/src/leiningen/new/pedestal_app/app/templates/tooling.html
  20. +0 −111 app-template/src/leiningen/new/pedestal_app/config/config.edn
  21. +0 −12 app-template/src/leiningen/new/pedestal_app/dev/user.clj
  22. +0 −19 app-template/src/leiningen/new/pedestal_app/project.clj
  23. +0 −41 app-template/src/leiningen/new/pedestal_app/test/behavior_test.clj
  24. +0 −26 app-template/src/leiningen/new/pedestal_app/tools/public/404.html
  25. +0 −16 app-template/src/leiningen/new/pedestal_app/tools/public/design.html
  26. BIN app-template/src/leiningen/new/pedestal_app/tools/public/favicon.ico
  27. +0 −70 app-template/src/leiningen/new/pedestal_app/tools/public/index.html
  28. +0 −2,027 app-template/src/leiningen/new/pedestal_app/tools/public/javascripts/bootstrap.js
  29. +0 −2 app-template/src/leiningen/new/pedestal_app/tools/public/javascripts/jquery-min.js
  30. +0 −20 app-template/src/leiningen/new/pedestal_app/tools/public/javascripts/pedestal/js/api.js
  31. +0 −5,774 app-template/src/leiningen/new/pedestal_app/tools/public/stylesheets/bootstrap.css
  32. +0 −86 app-template/src/leiningen/new/pedestal_app/tools/public/stylesheets/pedestal.css
  33. +0 −13 app-tools/README.md
  34. +0 −29 app-tools/project.clj
  35. +0 −403 app-tools/src/io/pedestal/app_tools/build.clj
  36. +0 −245 app-tools/src/io/pedestal/app_tools/compile.clj
  37. +0 −31 app-tools/src/io/pedestal/app_tools/compile/config.clj
  38. +0 −29 app-tools/src/io/pedestal/app_tools/compile/repl.clj
  39. +0 −143 app-tools/src/io/pedestal/app_tools/dev.clj
  40. +0 −157 app-tools/src/io/pedestal/app_tools/host_page.clj
  41. +0 −23 app-tools/src/io/pedestal/app_tools/middleware.clj
  42. +0 −156 app-tools/src/io/pedestal/app_tools/rendering_view/client.cljs
  43. +0 −166 app-tools/src/io/pedestal/app_tools/rendering_view/record.cljs
  44. +0 −156 app-tools/src/io/pedestal/app_tools/rendering_view/routes.clj
  45. +0 −50 app-tools/src/io/pedestal/app_tools/routes.clj
  46. +0 −92 app-tools/src/io/pedestal/app_tools/service.clj
  47. +0 −27 app-tools/src/io/pedestal/app_tools/tooling.cljs
  48. 0 app-tools/test/glob-test/foo/bar.clj
  49. 0 app-tools/test/glob-test/foo/bar/baz.clj
  50. 0 app-tools/test/glob-test/foo/bar/baz.cljs
  51. +0 −62 app-tools/test/io/pedestal/app_tools/test/build.clj
  52. +0 −25 app-tools/test/io/pedestal/app_tools/test/service.clj
  53. +0 −5 app-tools/to-port.md
  54. +0 −13 app/README.md
  55. +0 −342 app/examples/walkthrough.clj
  56. +0 −25 app/project.clj
  57. +0 −60 app/script/jstest
  58. +0 −376 app/src/io/pedestal/app.clj
  59. +0 −65 app/src/io/pedestal/app/construct.clj
  60. +0 −65 app/src/io/pedestal/app/construct.cljs
  61. +0 −97 app/src/io/pedestal/app/data/change.clj
  62. +0 −171 app/src/io/pedestal/app/data/tracking_map.clj
  63. +0 −131 app/src/io/pedestal/app/data/tracking_map.cljs
  64. +0 −452 app/src/io/pedestal/app/dataflow.clj
  65. +0 −85 app/src/io/pedestal/app/diff.clj
  66. +0 −78 app/src/io/pedestal/app/flow.clj
  67. +0 −79 app/src/io/pedestal/app/flow.cljs
  68. +0 −101 app/src/io/pedestal/app/map.clj
  69. +0 −102 app/src/io/pedestal/app/map.cljs
  70. +0 −126 app/src/io/pedestal/app/match.clj
  71. +0 −153 app/src/io/pedestal/app/messages.clj
  72. +0 −40 app/src/io/pedestal/app/model.clj
  73. +0 −41 app/src/io/pedestal/app/model.cljs
  74. +0 −41 app/src/io/pedestal/app/net/repl_client.cljs
  75. +0 −101 app/src/io/pedestal/app/net/xhr.cljs
  76. +0 −28 app/src/io/pedestal/app/protocols.clj
  77. +0 −113 app/src/io/pedestal/app/query.clj
  78. +0 −71 app/src/io/pedestal/app/queue.clj
  79. +0 −32 app/src/io/pedestal/app/render.clj
  80. +0 −84 app/src/io/pedestal/app/render/events.cljs
  81. +0 −166 app/src/io/pedestal/app/render/push.clj
  82. +0 −220 app/src/io/pedestal/app/render/push/cljs_formatter.cljs
  83. +0 −40 app/src/io/pedestal/app/render/push/handlers.cljs
  84. +0 −311 app/src/io/pedestal/app/render/push/handlers/automatic.cljs
  85. +0 −71 app/src/io/pedestal/app/render/push/templates.cljs
  86. +0 −58 app/src/io/pedestal/app/route.clj
  87. +0 −62 app/src/io/pedestal/app/route.cljs
  88. +0 −324 app/src/io/pedestal/app/templates.clj
  89. +0 −457 app/src/io/pedestal/app/tree.clj
  90. +0 −113 app/src/io/pedestal/app/util/adapters.clj
  91. +0 −19 app/src/io/pedestal/app/util/console_log.cljs
  92. +0 −43 app/src/io/pedestal/app/util/log.clj
  93. +0 −47 app/src/io/pedestal/app/util/log.cljs
  94. +0 −59 app/src/io/pedestal/app/util/platform.clj
  95. +0 −55 app/src/io/pedestal/app/util/platform.cljs
  96. +0 −53 app/src/io/pedestal/app/util/scheduler.clj
  97. +0 −73 app/src/io/pedestal/app/util/test.clj
  98. +0 −23 app/src/io/pedestal/app/util/web_workers.cljs
  99. +0 −11 app/test/clj/container.html
  100. +0 −96 app/test/clj/io/pedestal/app/construct_test.clj
  101. +0 −39 app/test/clj/io/pedestal/app/data/test/change.clj
  102. +0 −204 app/test/clj/io/pedestal/app/data/test/tracking_map.clj
  103. +0 −35 app/test/clj/io/pedestal/app/diff_test.clj
  104. +0 −26 app/test/clj/io/pedestal/app/flow_test.clj
  105. +0 −20 app/test/clj/io/pedestal/app/generators.clj
  106. +0 −57 app/test/clj/io/pedestal/app/helpers.clj
  107. +0 −38 app/test/clj/io/pedestal/app/helpers_test.clj
  108. +0 −120 app/test/clj/io/pedestal/app/map_test.clj
  109. +0 −82 app/test/clj/io/pedestal/app/match_test.clj
  110. +0 −163 app/test/clj/io/pedestal/app/model_test.clj
  111. +0 −369 app/test/clj/io/pedestal/app/perf/README.md
  112. +0 −76 app/test/clj/io/pedestal/app/perf/model/complex.clj
  113. +0 −85 app/test/clj/io/pedestal/app/perf/model/diff.clj
  114. +0 −77 app/test/clj/io/pedestal/app/perf/model/diff2.clj
  115. +0 −51 app/test/clj/io/pedestal/app/perf/model/hybrid.clj
  116. +0 −40 app/test/clj/io/pedestal/app/perf/model/naive.clj
  117. +0 −40 app/test/clj/io/pedestal/app/perf/model/optimized.clj
  118. +0 −40 app/test/clj/io/pedestal/app/perf/model/optimized2.clj
  119. +0 −170 app/test/clj/io/pedestal/app/perf/model/tracking_map.clj
  120. +0 −60 app/test/clj/io/pedestal/app/perf/model/value.clj
  121. +0 −201 app/test/clj/io/pedestal/app/perf/test.clj
  122. +0 −202 app/test/clj/io/pedestal/app/render/test/dom.clj
  123. +0 −485 app/test/clj/io/pedestal/app/render/test/push.clj
  124. +0 −84 app/test/clj/io/pedestal/app/route_test.clj
  125. +0 −605 app/test/clj/io/pedestal/app/test/dataflow.clj
  126. +0 −65 app/test/clj/io/pedestal/app/test/messages.clj
  127. +0 −89 app/test/clj/io/pedestal/app/test/query.clj
  128. +0 −106 app/test/clj/io/pedestal/app/test/templates.clj
  129. +0 −947 app/test/clj/io/pedestal/app/test/tree.clj
  130. +0 −1,307 app/test/clj/io/pedestal/test/app.clj
  131. +0 −5 app/test/clj/template.html
  132. +0 −192 app/test/cljs/io/pedestal/app/data/test/tracking_map.cljs
  133. +0 −39 app/test/cljs/io/pedestal/app/test/dataflow.cljs
  134. +0 −17 app/test/cljs/io/pedestal/app/test_macros.clj
  135. +0 −24 app/test/cljs/test_runner.cljs
  136. +28 −0 guides/CONTRIBUTING.md
  137. +37 −0 guides/README.md
  138. +181 −0 guides/documentation/connecting-to-datomic.md
  139. +211 −0 guides/documentation/hello-world-service.md
  140. +71 −0 guides/documentation/index.md
  141. +109 −0 guides/documentation/service-async.md
  142. +140 −0 guides/documentation/service-context-reference.md
  143. +316 −0 guides/documentation/service-interceptors.md
  144. +632 −0 guides/documentation/service-routing.md
  145. +123 −0 guides/documentation/service-sse.md
  146. +115 −0 guides/documentation/service-streaming.md
  147. +158 −0 guides/documentation/service-war-deployment.md
  148. +261 −0 guides/epl-v10.html
  149. +2 −0 jetty/README.md
  150. +1 −0 jetty/project.clj
  151. +1 −0 jetty/src/io/pedestal/service/http/jetty.clj
  152. +2 −4 project.clj
  153. +44 −0 samples/README.md
  154. +3 −0 samples/auto-reload-server/.gitignore
  155. +20 −0 samples/auto-reload-server/README.md
  156. +52 −0 samples/auto-reload-server/config/logback.xml
  157. +54 −0 samples/auto-reload-server/dev/dev.clj
  158. +5 −0 samples/auto-reload-server/dev/user.clj
  159. +25 −0 samples/auto-reload-server/project.clj
  160. +31 −0 samples/auto-reload-server/src/auto_reload_server/server.clj
  161. +49 −0 samples/auto-reload-server/src/auto_reload_server/service.clj
  162. +24 −0 samples/auto-reload-server/test/auto_reload_server/service_test.clj
  163. +2 −0 samples/cors/.gitignore
  164. +48 −0 samples/cors/README.md
  165. +9 −7 {app/dev → samples/cors/config}/logback.xml
  166. +40 −0 samples/cors/dev/dev.clj
  167. +6 −4 app-template/project.clj → samples/cors/dev/user.clj
  168. +28 −0 samples/cors/project.clj
  169. +13 −0 samples/cors/src/blob.html
  170. +49 −0 samples/cors/src/cors/server.clj
  171. +71 −0 samples/cors/src/cors/service.clj
  172. +8 −11 app/src/io/pedestal/app/util/observers.clj → samples/cors/test/cors/service_test.clj
  173. +3 −0 samples/jboss/.gitignore
  174. +29 −0 samples/jboss/README.md
  175. +7 −5 {app-template/src/leiningen/new/pedestal_app → samples/jboss}/config/logback.xml
  176. +30 −0 samples/jboss/dev/dev.clj
  177. +5 −0 samples/jboss/dev/user.clj
  178. +27 −0 samples/jboss/project.clj
  179. +24 −0 samples/jboss/src/immutant/init.clj
  180. +42 −0 samples/jboss/src/jboss/server.clj
  181. +51 −0 samples/jboss/src/jboss/service.clj
  182. +18 −0 samples/jboss/test/jboss/service_test.clj
  183. +2 −0 samples/ring-middleware/.gitignore
  184. +53 −0 samples/ring-middleware/README.md
  185. +52 −0 samples/ring-middleware/config/logback.xml
  186. +39 −0 samples/ring-middleware/dev/dev.clj
  187. +27 −0 samples/ring-middleware/project.clj
  188. +16 −0 samples/ring-middleware/src/hello-form.html
  189. +48 −0 samples/ring-middleware/src/ring_middleware/server.clj
  190. +106 −0 samples/ring-middleware/src/ring_middleware/service.clj
  191. +25 −0 samples/ring-middleware/test/ring_middleware/service_test.clj
  192. +3 −0 samples/server-sent-events/.gitignore
  193. +18 −0 samples/server-sent-events/README.md
  194. +52 −0 samples/server-sent-events/config/logback.xml
  195. +39 −0 samples/server-sent-events/dev/dev.clj
  196. +5 −0 samples/server-sent-events/dev/user.clj
  197. +22 −0 samples/server-sent-events/project.clj
  198. +47 −0 samples/server-sent-events/src/server_sent_events/server.clj
  199. +44 −0 samples/server-sent-events/src/server_sent_events/service.clj
  200. +18 −0 samples/server-sent-events/test/server_sent_events/service_test.clj
  201. +2 −0 samples/server-with-links/.gitignore
  202. +24 −0 samples/server-with-links/README.md
  203. +52 −0 samples/server-with-links/config/logback.xml
  204. +39 −0 samples/server-with-links/dev/dev.clj
  205. +27 −0 samples/server-with-links/project.clj
  206. +48 −0 samples/server-with-links/src/server_with_links/server.clj
  207. +59 −0 samples/server-with-links/src/server_with_links/service.clj
  208. +25 −0 samples/server-with-links/test/server_with_links/service_test.clj
  209. +2 −0 samples/template-server/.gitignore
  210. +39 −0 samples/template-server/README.md
  211. +52 −0 samples/template-server/config/logback.xml
  212. +39 −0 samples/template-server/dev/dev.clj
  213. +6 −5 app-tools/src/io/pedestal/app_tools/server.clj → samples/template-server/dev/user.clj
  214. +32 −0 samples/template-server/project.clj
  215. +6 −0 samples/template-server/resources/public/comb.html
  216. +12 −0 samples/template-server/resources/public/enlive-template.html
  217. +10 −0 samples/template-server/resources/public/mustache-template.html
  218. +48 −0 samples/template-server/src/template_server/server.clj
  219. +121 −0 samples/template-server/src/template_server/service.clj
  220. +32 −0 samples/template-server/test/template_server/service_test.clj
  221. +1 −1 script/util/common.rb
  222. +1 −0 service-template/README.md
  223. +1 −0 service-template/project.clj
  224. +1 −0 service-template/src/leiningen/new/pedestal_service.clj
  225. +1 −0 service-template/test/pedestal/new_server_integration_test.clj
  226. +1 −0 service/README.md
  227. +2 −1 service/bench/io/pedestal/log_bench.clj
  228. +1 −0 service/java/io/pedestal/servlet/ClojureVarServlet.java
  229. +1 −0 service/project.clj
  230. +1 −0 service/src/io/pedestal/service/http.clj
  231. +1 −0 service/src/io/pedestal/service/http/body_params.clj
  232. +2 −1 service/src/io/pedestal/service/http/cors.clj
  233. +1 −0 service/src/io/pedestal/service/http/impl/servlet_interceptor.clj
  234. +1 −0 service/src/io/pedestal/service/http/ring_middlewares.clj
  235. +1 −0 service/src/io/pedestal/service/http/route.clj
  236. +1 −0 service/src/io/pedestal/service/http/route/definition.clj
  237. +1 −0 service/src/io/pedestal/service/http/route/definition/verbose.clj
  238. +1 −0 service/src/io/pedestal/service/http/servlet.clj
  239. +2 −1 service/src/io/pedestal/service/http/sse.clj
  240. +1 −0 service/src/io/pedestal/service/impl/interceptor.clj
  241. +1 −0 service/src/io/pedestal/service/interceptor.clj
  242. +1 −0 service/src/io/pedestal/service/log.clj
  243. +1 −0 service/src/io/pedestal/service/test.clj
  244. +1 −0 service/test/io/pedestal/service/http/body_params_test.clj
  245. +1 −0 service/test/io/pedestal/service/http/cors_test.clj
  246. +1 −0 service/test/io/pedestal/service/http/request_handling_test.clj
  247. +1 −0 service/test/io/pedestal/service/http/ring_middlewares_test.clj
  248. +2 −1 service/test/io/pedestal/service/http/route_test.clj
  249. +1 −0 service/test/io/pedestal/service/http/sse_test.clj
  250. +1 −0 service/test/io/pedestal/service/http_test.clj
  251. +1 −0 service/test/io/pedestal/service/interceptor_test.clj
  252. +2 −1 service/test/io/pedestal/service/test_test.clj
  253. +1 −0 tomcat/README.md
  254. +1 −0 tomcat/project.clj
  255. +1 −0 tomcat/src/io/pedestal/service/http/tomcat.clj
View
@@ -1,4 +1,5 @@
Copyright 2013 Relevance, Inc.
+Copyright 2014 Cognitect, Inc.
The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0)
@@ -34,3 +35,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+
View
@@ -1,21 +1,18 @@
# Pedestal [![Build Status](https://travis-ci.org/pedestal/pedestal.png)](https://travis-ci.org/pedestal/pedestal)
-Pedestal is a web application framework written in Clojure that aims to bring
-both the language and its principles (Simplicity, Power and Focus) to client and
+Pedestal is a set of libraries written in Clojure that aims to bring
+both the language and its principles (Simplicity, Power and Focus) to
server-side development.
## Getting started
### Starting a new project
Use [leiningen](https://github.com/technomancy/leiningen) (2.2.0+) to create a new
-Pedestal application or service. This will automatically pull templates from
+Pedestal service. This will automatically pull templates from
<http://clojars.org>
```bash
-# To create a new client-side application:
-lein new pedestal-app the-next-big-thing
-
# To create a new service:
lein new pedestal-service the-next-big-server-side-thing
```
@@ -32,11 +29,10 @@ applications and improving general ease of use.
### Documentation
-* [Pedestal documentation](http://pedestal.io/documentation/): overview of
- Pedestal concepts and advice on getting started.
-* API Docs: generate literate-programming-style API docs by following the
- "What about API Documentation?" instructions in the
- [Pedestal Overview](http://pedestal.io/documentation/).
+ * [Pedestal documentation](./guides) is coupled within this repository.
+ In the future, we may opt to publish formal, formatted docs at the [original web location](http://pedestal.io/documentation/)
+ * API Docs: generate literate-programming-style API docs by following the
+ instructions within the [guides](./guides/documentation/index.md#what-about-api-documentation).
### Supported Platforms
@@ -65,15 +61,13 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on contributing to Pedestal.
To install Pedestal library components in your local Maven repository run
`lein sub install` from a local checkout of this repository.
-**WARNING: Until 0.3.0 is released, this repository contains code/changes
-that *does not match* resources like the [docs](http://pedestal.io/documentation/),
-[tutorial](https://github.com/pedestal/app-tutorial/) or otherwise.**
-
---
## License
Copyright 2013 Relevance, Inc.
+Copyright 2014 Cognitect, Inc.
+
The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0)
which can be found in the file [epl-v10.html](epl-v10.html) at the root of this distribution.
View
@@ -1,10 +0,0 @@
-/target
-/lib
-/classes
-/checkouts
-pom.xml
-*.jar
-*.class
-.lein-deps-sum
-.lein-failures
-.lein-plugins
View
@@ -1,28 +0,0 @@
-# Pedestal Application Template
-
-Generate a new Pedestal Application.
-
-## Usage
-
-To create a new project run:
-
-```bash
-# Generate a project with introductory comments
-lein new pedestal-app example
-# Alternatively, generate a project without comments
-lein new pedestal-app example no-comment
-```
-
-You will have a new app in example! To explore further, read
-the [readme in your generated
-app](https://github.com/pedestal/pedestal/blob/master/app-template/src/leiningen/new/pedestal_app/README.md).
-
-## Developer Notes
-
-There are two ways to try out local changes to this template:
-
-1. Run `lein new pedestal-app NAME` in this directory.
-2. `lein install` in this directory; ensure the correct version of the template is in :plugins of your
- `~/.lein/profiles.clj`; generate a new app.
-
-<!-- Copyright 2013 Relevance, Inc. -->
@@ -1,86 +0,0 @@
-; Copyright 2013 Relevance, Inc.
-
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0)
-; which can be found in the file epl-v10.html at the root of this distribution.
-;
-; By using this software in any fashion, you are agreeing to be bound by
-; the terms of this license.
-;
-; You must not remove this notice, or any other, from this software.
-
-(ns leiningen.new.pedestal-app
- (:use [leiningen.new.templates :only [renderer name-to-path ->files
- project-name sanitize-ns]]))
-
-(defn base-files [render data]
- [[".gitignore" (render ".gitignore" data)]
- ["README.md" (render "README.md" data)]
- ["project.clj" (render "project.clj" data)]
-
- [(str "app/assets/stylesheets/{{name}}.css")
- (render "app/assets/stylesheets/project.css" data)]
- [(str "app/assets/stylesheets/bootstrap.css")
- (render "tools/public/stylesheets/bootstrap.css" data)]
- [(str "app/assets/stylesheets/pedestal.css")
- (render "tools/public/stylesheets/pedestal.css" data)]
-
- ["app/assets/javascripts/xpath.js"
- (render "app/assets/javascripts/xpath.js" data)]
-
- ["app/src/{{sanitized}}/behavior.clj" (render "app/src/behavior.clj" data)]
- ["app/src/{{sanitized}}/html_templates.clj" (render "app/src/html_templates.clj" data)]
- ["app/src/{{sanitized}}/rendering.cljs" (render "app/src/rendering.cljs" data)]
- ["app/src/{{sanitized}}/start.cljs" (render "app/src/start.cljs" data)]
- ["app/src/{{sanitized}}/simulated/start.cljs" (render "app/src/simulated/start.cljs" data)]
-
- ["app/templates/application.html" (render "app/templates/application.html" data)]
- ["app/templates/tooling.html" (render "app/templates/tooling.html" data)]
- ["app/templates/{{name}}.html" (render "app/templates/project.html" data)]
-
- ["tools/public/404.html" (render "tools/public/404.html" data)]
- ["tools/public/design.html" (render "tools/public/design.html" data)]
- ["tools/public/favicon.ico" (render "tools/public/favicon.ico" data)]
- ["tools/public/index.html" (render "tools/public/index.html" data)]
- ["tools/public/stylesheets/bootstrap.css"
- (render "tools/public/stylesheets/bootstrap.css" data)]
- ["tools/public/stylesheets/pedestal.css"
- (render "tools/public/stylesheets/pedestal.css" data)]
- ["tools/public/javascripts/bootstrap.js"
- (render "tools/public/javascripts/bootstrap.js" data)]
- ["tools/public/javascripts/jquery-min.js"
- (render "tools/public/javascripts/jquery-min.js" data)]
- ["tools/public/javascripts/pedestal/js/api.js"
- (render "tools/public/javascripts/pedestal/js/api.js" data)]
-
- ["config/config.edn" (render "config/config.edn" data)]
- ["dev/user.clj" (render "dev/user.clj" data)]
- ["config/logback.xml" (render "config/logback.xml" data)]
-
- ["test/{{sanitized}}/behavior_test.clj" (render "test/behavior_test.clj" data)]])
-
-(defn annotated-project [render data]
- (let [render (renderer "pedestal-app")]
- (apply ->files data
- ["app/src/{{sanitized}}/services.cljs" (render "app/src/services.cljs" data)]
- ["app/src/{{sanitized}}/simulated/services.cljs" (render "app/src/simulated/services.cljs" data)]
- (base-files render data))))
-
-(defn unannotated-project [render data]
- (let [render (renderer "pedestal-app")]
- (apply ->files data
- (base-files render data))))
-
-(defn pedestal-app
- "A Pedestal application project template."
- [name & args]
- (let [main-ns (sanitize-ns name)
- {:keys [annotated?] :as data} {:raw-name name
- :name (project-name name)
- :namespace main-ns
- :sanitized (name-to-path main-ns)
- :annotated? (not= "no-comment" (first args))}
- render (renderer "pedestal-app")]
- (if annotated?
- (annotated-project render data)
- (unannotated-project render data))))
@@ -1,4 +0,0 @@
-out/
-target/
-logs/
-.lein-repl-history
@@ -1,57 +0,0 @@
-# {{name}}
-
-Start working on this application by writing its behavior in the file
-`app/src/{{sanitized}}/behavior.clj`
-
-
-## Usage
-
-`cd` into any directory and execute the following:
-
-```bash
-lein new pedestal-app my-project
-cd my-project
-lein repl
-```
-
-The `io.pedestal.app-tools.dev` namespace is loaded by default. It contains
-several useful functions. To see a list of some of these functions, type:
-
-```clj
-(tools-help)
-```
-
-To begin working on an application, execute:
-
-```clj
-(start)
-```
-
-and then visit `http://localhost:3000`.
-
-Alternatively, start the app server from the command line: `lein run`.
-
-During development of an application, sources will be compiled
-on-demand. Sources include everything located in the `app`
-directory. All compiled output goes to `out/public`. The contents of
-`out/public` are transient and the `out` directory can be deleted at
-any time to trigger a complete re-build.
-
-The contents of `out/public` are the deployment artifacts for this
-project.
-
-If you would like to serve the contents of `out/public` from another
-server and not run the development server. Run:
-
-```clj
-(watch :development)
-```
-
-from the application project to automatically build the `:development`
-environment when sources change.
-
-
-## Links
-
-* [Overview of how pedestal-app works](http://pedestal.io/documentation/application-overview/)
-* [Comprehensive tutorial for pedestal-app](https://github.com/pedestal/app-tutorial)
Oops, something went wrong.

0 comments on commit d62737f

Please sign in to comment.