This file contains hidden or 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
matygo/ | |
└── src | |
├── main | |
│ └── scala | |
│ └── com | |
│ └── matygo | |
│ └── matygoApp | |
│ ├── service | |
│ │ └── services | |
│ │ └── emailTemplates |
This file contains hidden or 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
EmailTemplater.templatesController = SC.ObjectController.create({ | |
content: SC.Object.create({ | |
subject: '', | |
body: '' | |
}), | |
convertedSubject: function() { | |
return this._replacePlacholders("subject"); | |
}.property('subject'), |
This file contains hidden or 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
{% for post in site.posts limit:5 %} | |
<div class="box"> | |
<h3>{{post.title}}</h3> | |
<div class="clearfix"></div> | |
<div class="right big"> | |
{% assign breakIndex = -1 %} | |
{% for element in post.content %} | |
{% if element contains '<!--more-->' %} | |
{% assign breakIndex = forloop.index %} | |
{% endif %} |
This file contains hidden or 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
public class SpringRestletServlet extends ServerServlet | |
{ | |
private static final long serialVersionUID = 3178425324679869158L; | |
private static final Logger LOG = LoggerFactory.getLogger( SpringRestletServlet.class ); | |
/** | |
* Override the createApplication method to inject Spring objects | |
* | |
* @param context - Restlet context |
This file contains hidden or 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
import org.restlet.Context; | |
import org.restlet.ext.jaxrs.JaxRsApplication; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.ws.rs.core.Application; | |
import java.util.HashSet; | |
import java.util.Set; | |
public class WebServicesApplication extends JaxRsApplication |
NewerOlder