This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<r:require module="theme-${session.themeName}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
marcmacbook:github-weceem-app marc$ grails install-plugin ../github-weceem/grails-weceem-1.1.BUILD-SNAPSHOT.zip | |
| Configuring classpath | |
:: problems summary :: | |
:::: WARNINGS | |
module not found: org.grails.plugins#weceem;1.1.BUILD-SNAPSHOT | |
==== grailsPlugins: tried | |
-- artifact org.grails.plugins#weceem;1.1.BUILD-SNAPSHOT!weceem.zip: | |
/Users/marc/Projects/checkout/github-weceem-app/lib/weceem-1.1.BUILD-SNAPSHOT.zip | |
/Users/marc/.grails/2.0.0.BUILD-SNAPSHOT/projects/weceem/plugins/bean-fields-1.0-RC3/lib/weceem-1.1.BUILD-SNAPSHOT.zip | |
/Users/marc/.grails/2.0.0.BUILD-SNAPSHOT/projects/weceem/plugins/blueprint-0.9.1.1/lib/weceem-1.1.BUILD-SNAPSHOT.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Rainbowduino.h> | |
byte display[] = { | |
0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Rainbowduino.h> | |
byte display[] = { | |
0, 1, 1, 1, 1, 1, 1, 0, | |
0, 1, 1, 1, 1, 1, 1, 0, | |
0, 1, 1, 1, 1, 1, 1, 0, | |
0, 0, 1, 1, 1, 1, 0, 0, | |
0, 0, 0, 1, 1, 0, 0, 0, | |
0, 0, 0, 1, 1, 0, 0, 0, | |
0, 0, 1, 1, 1, 1, 0, 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- | |
Set up the custom wrapper to automatically lay out before "head" | |
Resources would have a new "init" disposition added that always renders just before "head" disposition | |
--%> | |
<%-- | |
This script would be lazy-evaluated only at time of rendering. "stash" would be the | |
accumulated data for this stash "name" | |
--%> | |
<r:script stash="globalJSData" disposition="init"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YourController { | |
def authenticationService | |
def onlyLoggedInUsers = { | |
if (!authenticationService.isLoggedIn(request)) { | |
// Redirect or return Forbidden | |
response.sendError(403) | |
} else { | |
… do something | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean:withBean beanName="form"> | |
<bean:field property="firstName"/> | |
<bean:field property="lastName"/> | |
<bean:field property="company"/> | |
<bean:field property="email"/> | |
</bean:withBean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ContentController { | |
def show = { | |
cache shared:true, validFor: 3600 // 1hr on content | |
render(....) | |
} | |
def todaysNewItems = { | |
cache shared: true, validUntil: new Date()+1 | |
render(....) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YourController { | |
def emailConfirmationService | |
def checkEmail = { | |
// Only do this if not confirmed already! | |
emailConfirmationService.sendConfirmation(params.emailAddress, | |
"Please confirm", [from:"[email protected]"]) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YourController { | |
def feed = { | |
render(feedType:"rss", feedVersion:"2.0") { | |
title = "My test feed" | |
link = "http://your.test.server/yourController/feed" | |
description = "The funky Grails news feed" | |
Article.list().each() { article -> | |
entry(article.title) { | |
link = "http://your.test.server/article/${article.id}" | |
article.content // return the content |