Permalink
Browse files

package textmate support

  • Loading branch information...
1 parent fd44849 commit 1b97bc70b45fd954ad997e0c601a3d5049979cb4 guillaume committed Aug 20, 2009
Showing with 30 additions and 4,302 deletions.
  1. +1 −0 .bzrignore
  2. +9 −9 documentation/manual/home.textile
  3. +7 −1 framework/build.xml
  4. +13 −13 framework/templates/tags/welcome.html
  5. BIN support/textmate.zip
  6. +0 −736 support/textmate/play.tmTheme
  7. +0 −22 support/textmate/play.tmbundle/Commands/Controller.tmCommand
  8. +0 −22 support/textmate/play.tmbundle/Commands/Go to action 2.tmCommand
  9. +0 −22 support/textmate/play.tmbundle/Commands/Go to action.tmCommand
  10. +0 −22 support/textmate/play.tmbundle/Commands/Go to parent template.tmCommand
  11. +0 −22 support/textmate/play.tmbundle/Commands/Go to route.tmCommand
  12. +0 −22 support/textmate/play.tmbundle/Commands/Go to view.tmCommand
  13. +0 −22 support/textmate/play.tmbundle/Commands/model.tmCommand
  14. +0 −22 support/textmate/play.tmbundle/Commands/new simple class.tmCommand
  15. +0 −26 support/textmate/play.tmbundle/DragCommands/#{include :}.tmDragCommand
  16. +0 −29 support/textmate/play.tmbundle/DragCommands/<img :>.tmDragCommand
  17. +0 −26 support/textmate/play.tmbundle/DragCommands/<link :>.tmDragCommand
  18. +0 −26 support/textmate/play.tmbundle/DragCommands/<script :>.tmDragCommand
  19. +0 −26 support/textmate/play.tmbundle/DragCommands/render(template).tmDragCommand
  20. +0 −736 support/textmate/play.tmbundle/Play!.tmTheme
  21. +0 −16 support/textmate/play.tmbundle/Snippets/#{___ :}.tmSnippet
  22. +0 −18 support/textmate/play.tmbundle/Snippets/#{___ } #{:___}.tmSnippet
  23. +0 −17 support/textmate/play.tmbundle/Snippets/#{doBody }.tmSnippet
  24. +0 −17 support/textmate/play.tmbundle/Snippets/#{doLayout :).tmSnippet
  25. +0 −18 support/textmate/play.tmbundle/Snippets/#{elseif}.tmSnippet
  26. +0 −18 support/textmate/play.tmbundle/Snippets/#{else}.tmSnippet
  27. +0 −17 support/textmate/play.tmbundle/Snippets/#{extends :}.tmSnippet
  28. +0 −17 support/textmate/play.tmbundle/Snippets/#{get :}.tmSnippet
  29. +0 −18 support/textmate/play.tmbundle/Snippets/#{if}.tmSnippet
  30. +0 −17 support/textmate/play.tmbundle/Snippets/#{include :}.tmSnippet
  31. +0 −18 support/textmate/play.tmbundle/Snippets/#{list}.tmSnippet
  32. +0 −17 support/textmate/play.tmbundle/Snippets/#{set :}.tmSnippet
  33. +0 −16 support/textmate/play.tmbundle/Snippets/${ ___ }.tmSnippet
  34. +0 −18 support/textmate/play.tmbundle/Snippets/%{ ___ }%.tmSnippet
  35. +0 −16 support/textmate/play.tmbundle/Snippets/* ___.tmSnippet
  36. +0 −16 support/textmate/play.tmbundle/Snippets/*{ ____ }*.tmSnippet
  37. +0 −16 support/textmate/play.tmbundle/Snippets/<em>.tmSnippet
  38. +0 −16 support/textmate/play.tmbundle/Snippets/<li>.tmSnippet
  39. +0 −18 support/textmate/play.tmbundle/Snippets/<p>.tmSnippet
  40. +0 −16 support/textmate/play.tmbundle/Snippets/<span>.tmSnippet
  41. +0 −16 support/textmate/play.tmbundle/Snippets/<strong>.tmSnippet
  42. +0 −18 support/textmate/play.tmbundle/Snippets/<ul>.tmSnippet
  43. +0 −16 support/textmate/play.tmbundle/Snippets/@ManyToMany.tmSnippet
  44. +0 −16 support/textmate/play.tmbundle/Snippets/@ManyToOne.tmSnippet
  45. +0 −16 support/textmate/play.tmbundle/Snippets/@OneToMany.tmSnippet
  46. +0 −16 support/textmate/play.tmbundle/Snippets/@OneToOne.tmSnippet
  47. +0 −16 support/textmate/play.tmbundle/Snippets/@{___}.tmSnippet
  48. +0 −18 support/textmate/play.tmbundle/Snippets/Action.tmSnippet
  49. +0 −16 support/textmate/play.tmbundle/Snippets/DELETE ___.tmSnippet
  50. +0 −16 support/textmate/play.tmbundle/Snippets/GET ___.tmSnippet
  51. +0 −16 support/textmate/play.tmbundle/Snippets/HEAD ___.tmSnippet
  52. +0 −17 support/textmate/play.tmbundle/Snippets/Java comment line.tmSnippet
  53. +0 −18 support/textmate/play.tmbundle/Snippets/Java comment.tmSnippet
  54. +0 −16 support/textmate/play.tmbundle/Snippets/POST ___.tmSnippet
  55. +0 −16 support/textmate/play.tmbundle/Snippets/PUT ___.tmSnippet
  56. +0 −16 support/textmate/play.tmbundle/Snippets/Public variable.tmSnippet
  57. +0 −16 support/textmate/play.tmbundle/Snippets/System_out_println().tmSnippet
  58. +0 −19 support/textmate/play.tmbundle/Snippets/before.tmSnippet
  59. +0 −16 support/textmate/play.tmbundle/Snippets/debug.tmSnippet
  60. +0 −16 support/textmate/play.tmbundle/Snippets/error.tmSnippet
  61. +0 −16 support/textmate/play.tmbundle/Snippets/findAll().tmSnippet
  62. +0 −16 support/textmate/play.tmbundle/Snippets/findById().tmSnippet
  63. +0 −16 support/textmate/play.tmbundle/Snippets/info.tmSnippet
  64. +0 −16 support/textmate/play.tmbundle/Snippets/notFound.tmSnippet
  65. +0 −16 support/textmate/play.tmbundle/Snippets/notFoundIfNull.tmSnippet
  66. +0 −16 support/textmate/play.tmbundle/Snippets/redirect.tmSnippet
  67. +0 −16 support/textmate/play.tmbundle/Snippets/render 2.tmSnippet
  68. +0 −16 support/textmate/play.tmbundle/Snippets/render.tmSnippet
  69. +0 −16 support/textmate/play.tmbundle/Snippets/renderArgs_put(___).tmSnippet
  70. +0 −16 support/textmate/play.tmbundle/Snippets/renderBinary.tmSnippet
  71. +0 −16 support/textmate/play.tmbundle/Snippets/renderJSON.tmSnippet
  72. +0 −16 support/textmate/play.tmbundle/Snippets/renderXml.tmSnippet
  73. +0 −16 support/textmate/play.tmbundle/Snippets/unauthorized.tmSnippet
  74. +0 −16 support/textmate/play.tmbundle/Snippets/unless.tmSnippet
  75. +0 −16 support/textmate/play.tmbundle/Snippets/warn.tmSnippet
  76. +0 −20 support/textmate/play.tmbundle/Support/bin/class.py
  77. +0 −23 support/textmate/play.tmbundle/Support/bin/controller.py
  78. +0 −71 support/textmate/play.tmbundle/Support/bin/go_to_action.py
  79. +0 −56 support/textmate/play.tmbundle/Support/bin/go_to_action_routes.py
  80. +0 −53 support/textmate/play.tmbundle/Support/bin/go_to_parent.py
  81. +0 −48 support/textmate/play.tmbundle/Support/bin/go_to_route.py
  82. +0 −61 support/textmate/play.tmbundle/Support/bin/go_to_view.py
  83. +0 −24 support/textmate/play.tmbundle/Support/bin/model.py
  84. +0 −853 support/textmate/play.tmbundle/Syntaxes/HTML.tmLanguage
  85. +0 −151 support/textmate/play.tmbundle/Syntaxes/routes (Play!).tmLanguage
  86. +0 −228 support/textmate/play.tmbundle/info.plist
View
@@ -61,3 +61,4 @@ samples-and-tests/just-test-cases/.settings
samples-and-tests/just-test-cases/eclipse
framework/ecClasses
documentation/api
+support/textmate
@@ -26,15 +26,15 @@ Each chapter is meant to last about one hour, and will be the occasion to learn
# "Building the first screen":guide3
# "The comments page":guide4
# "Setting up a Captcha":guide5
-# "Adding tags support":guide6
+# "Tagging support":guide6
# "A basic admin area using CRUD":guide7
# "Adding security":guide8
# "Better content using Textile":guide9
# "Creating a custom editor area":guide10
# "The media library":guide11
# "More fun with the Flickr API":guide12
# "Sending emails notifications":guide13
-# "A search engine with asynchronous indexing":guide14
+# "A search engine":guide14
# "Preparing for production":guide15
h2. <a name="manual">The essential documentation</a>
@@ -91,28 +91,28 @@ Tips about everything and anything.
# "Use cache and configure Memcached":cache
# "Put your application in production":production
# "Sending emails":emails
+# "OpenID integration":openid
h2. <a name="modules">Other batteries included</a>
-Other batteries included.
+These modules are availables.
-# "CRUD generator":crud
+# "CRUD":crud
# "Security":secure
-# "OpenID integration":openid
+# "Search":search
# "Spring support":spring
+# "Siena":siena
# "Extended CSS":ecss
-# "Google App Engine module":gae
-# "Google Web Toolkit module":gwt
-# "The zookeeper":zookeeper
+# "Google App Engine":gae
+# "Google Web Toolkit":gwt
# "Bespin editor":bespin
h2. <a name="references">References</a>
Extended references for day to day hacking.
-# "Download the precious cheat sheet (PDF)":w
# "Browse API documentation":/@api/index.html
# "Template tags and extensions reference":w
View
@@ -71,7 +71,7 @@
</javadoc>
</target>
- <target name="jar" depends="compile,version,modules,javadoc" description="create play.jar">
+ <target name="jar" depends="compile,version,modules,javadoc,support" description="create play.jar">
<echo message="${version}" file="src/play/version" />
<echo message="${version}" file="classes/play/version" />
<jar destfile="play.jar" basedir="classes">
@@ -87,6 +87,12 @@
</jar>
</target>
+ <target name="support">
+ <zip destfile="../support/textmate.zip" comment="Textmate bundle for Play! - ${version}" update="false">
+ <zipfileset dir="../support/textmate" includes="**/**" />
+ </zip>
+ </target>
+
<target name="modules">
<ant antfile="build.xml" target="build" dir="../modules/test-runner" />
<ant antfile="build.xml" target="build" dir="../modules/bespin" />
@@ -3,7 +3,7 @@
<div id="body">
<div id="page">
<div id="bc">
- Play framework, ${play.version}
+ Play framework, ${play.version} - <a href="/@documentation">Documentation</a> - <a href="/@api/index.html">Browse API</a>
</div>
<h1>Your application is ready !</h1>
<p>
@@ -12,28 +12,28 @@
Click here to get more informations about your application environment
</a>.
</p>
- <code id="env" style="display:none; background: rgb(255, 254, 178); border-bottom: 1px solid rgb(255, 179, 32); border-top: 1px solid rgb(255, 179, 32)"><pre>${play.CorePlugin.computeApplicationStatus()}</pre></code>
+ <pre><code id="env" style="display:none; background: rgb(255, 254, 178); border-bottom: 1px solid rgb(255, 179, 32); border-top: 1px solid rgb(255, 179, 32)">${play.CorePlugin.computeApplicationStatus()}</code></pre>
<h2><a name="why">Why do you see this page ?</a></h2>
<p>
The <strong>conf/routes</strong> file defines a route that tell play to invoke the <strong>Application.index</strong> action
when a browser requests the <strong>/</strong> URI using the <strong>GET</strong> method:
</p>
- <code><pre># Home page
-GET / Application.index</pre></code>
+ <pre><code># Home page
+GET / Application.index</code></pre>
<p>
So play has invoked the <strong>controllers&#46;Application&#46;index()</strong> method:
</p>
- <code><pre>public static void index() {
+ <pre><code>public static void index() {
render();
-}</pre></code>
+}</code></pre>
<p>
Using the <strong>render()</strong> call, this action asks play to display a template. By convention play has
displayed the <strong>app/views/Application/index.html</strong> template:
</p>
- <code><pre>&#35;{extends 'main.html' /}
+ <pre><code>&#35;{extends 'main.html' /}
&#35;{set title:'Home' /}
-&#35;{welcome /}</pre></code>
+&#35;{welcome /}</code></pre>
<p>
This template extends the <strong>app/views/main.html</strong>, and uses the <strong>&#35;{welcome /}</strong> tag to display this
welcome page.
@@ -52,24 +52,24 @@
You can quickly set up a developement database (either in memory or written to the filesystem), by adding one of these
lines to the <strong>conf/application.conf</strong> file:
</p>
-<code><pre># For a transient in memory database (HSQL in memory)
+<pre><code># For a transient in memory database (HSQL in memory)
db=mem
# for a simple file written database (HSQL file stored)
-db=fs</pre></code>
+db=fs</code></pre>
<p>
If you want to connect to an existing <strong>MySQL5 server</strong>, use:
</p>
-<code><pre>db=mysql:user:pwd@database_name</pre></code>
+<pre><code>db=mysql:user:pwd@database_name</code></pre>
</p>
<p>
If you need to connect to another JDBC compliant database, first add the corresponding driver library to the
<strong>lib/</strong> directory of your application, and add these lines to the <strong>conf/application.conf</strong> file:
</p>
- <code><pre>db.url=jdbc:postgresql:database_name
+ <pre><code>db.url=jdbc:postgresql:database_name
db.driver=org.postgresql.Driver
db.user=root
-db.pass=secret</pre></code>
+db.pass=secret</code></pre>
<h2><a name="doc">Need more help ?</a></h2>
<p>
When your application run in <strong>DEV</strong> mode, you can access directly the current documentation at the
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 1b97bc7

Please sign in to comment.