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
package riff.raff.snippet | |
import net.liftweb.http._ | |
import xml.NodeSeq | |
import net.liftweb.sitemap.MenuItem | |
class BootstrapMenu { | |
def render(in: NodeSeq): NodeSeq = { | |
val menuEntries = |
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
- import net.liftweb.http._ | |
!!! 5 | |
html{:xmlns => "http://www.w3.org/1999/xhtml", "xmlns:lift" => "http://liftweb.net/"} | |
head | |
meta{:content => "text/html", :charset => "UTF-8", "http-equiv" => "content-type"} | |
meta{:name => "description", :content => ""} | |
meta{:name => "keywords", :content => ""} | |
title{:class => "lift:Menu.title"} | |
|App: |
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
html | |
head | |
title | |
|Home | |
body{:class => "lift:content_id=main"} | |
#main{:class => "lift:surround?with=default;at=content"} | |
h2 | |
|Welcome to your Lift Application! | |
p | |
span{:class => "lift:helloWorld.hello"} |
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
package bootstrap.liftweb | |
import java.util.Locale | |
: | |
//object holding the chosen locale during the session, can be updated by user at any time. | |
object localeOverride extends SessionVar[Box[Locale]](Empty) | |
class Boot extends Loggable { | |
def boot { | |
: |
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
<?xml version="1.0"?> | |
<project | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>example</artifactId> | |
<version>0.0.36</version> |
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
9: class file needed by HTTPServletContext is missing. | |
[error] reference value servlet of package javax refers to nonexisting symbol. | |
[error] case http: HTTPServletContext => http.ctx.getRealPath(uri) | |
[error] ^ | |
[error] two errors found | |
[error] (compile:compile) Compilation failed | |
[error] Total time: 1 s, completed 19-Oct-2012 07:39:30 | |
> compile | |
[info] Compiling 7 Scala sources to /home/a.rashid/Work/projects/zantekk-web/target/scala-2.9.2/classes... | |
[error] /home/a.rashid/Work/projects/zantekk-web/src/main/scala/com/zantekk/www/conf/LiftTemplateEngine.scala:59: class file needed by HTTPServletContext is missing. |
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
<a href="#" class="showhide" source="one"> Thing </a> | |
<div id="one">aaa</div> | |
<a href="#" class="showhide" source="two"> Other Thing</a> | |
<div id="two">bbbb</div> | |
|
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
package riff.raff.snippet | |
import net.liftweb.http._ | |
import xml.NodeSeq | |
import net.liftweb.sitemap.MenuItem | |
class BootstrapMenu { | |
def render(in: NodeSeq): NodeSeq = { | |
val menuEntries = |
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
<script src="javascripts/jquery.js"></script> | |
<script src="javascripts/jquery.foundation.mediaQueryToggle.js"></script> | |
<script src="javascripts/jquery.foundation.forms.js"></script> | |
<script src="javascripts/jquery.foundation.reveal.js"></script> | |
<script src="javascripts/jquery.foundation.orbit.js"></script> |
OlderNewer