Greg Slepak avatar Greg Slepak committed 7e709fc

dragonfly_plugins finished

Comments (0)

Files changed (2)


-		<p class="extract">blah blah</p>
+		<p class="extract">You can extend and modify Dragonfly's behavior through the use of plugins.</p>
-			blah blah.
+			There are two types of plugins, those in the <b>plugins-active</b> folder, and those in the <b>plugins-inactive</b> folder. The ones in the former are loaded when <span class="code">listener</span> is called, prior to running the routes. Every .lsp file in the <b>plugins-active</b> folder is loaded at that point, so you'll only want your most frequently used files in there.
+		<h2>Active Plugins</h2>
+		<p>
+			A good example of an active plugin is a <%(link_to "custom route" "dragonfly_create_routes")%>. A small library of frequently used functions would also be something that makes sense to turn into an "always active" plugin.
+		</p>
+		<h2>Inactive Plugins</h2>
+		<p>
+			Inactive plugins are simply those that should be loaded on a "need to use" basis. Most plugins will probably fall into this category. Use <span class="code">DF:activate-plugin</span> to load them. All plugins are loaded exactly once, no matter how many times <span class="code">activate-plugin</span> is called on them.
+		</p>
+		<h2>Getting Plugins</h2>
+		<p>
+			Modules make for excellent plugins! There's a <a href="">list</a> of available modules on newLISP's site. Watch this space for Dragonfly specific plugins as they become available.
+		</p>
+		<p>
+			If you have a plugin you'd like to contribute, let us know on the <a href="">newLISP forums</a>!
+		</p>
 		<div class="line-dotted"></div>
 		<% (benchmark-result) %>


 		<h3 class="param">VIEW_EXTENSION</h3>
 		<p>Default value: <span class="code"><b>".html"</b></span></p>
+		<p>
+			Used by one of the transformations in <span class="code">Route.Static</span> so that a request to <span class="code">/welcome</span> loads the file <span class="code">/views/welcome.html</span>.
+		</p>
 		<p class="continue"><% (link_to "CONTINUE &raquo;" "dragonfly_plugins") %></p>
 		<div class="clear"></div>
 		<div class="line-dotted"></div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.