Skip to content
Browse files

leinification

  • Loading branch information...
1 parent 75c369f commit 79cd1a11209aeab12b67bb3fea5fb742efcdbbc6 @cgrand cgrand committed Jan 26, 2010
View
0 ...cgrand/enlive_html/examples-with-ring.clj → examples/examples-with-ring.clj
File renamed without changes.
View
0 src/net/cgrand/enlive_html/example.html → examples/net/cgrand/enlive_html/example.html
File renamed without changes.
View
14 examples/net/cgrand/enlive_html/examples-with-ring.clj
@@ -0,0 +1,14 @@
+(ns net.cgrand.enlive-html.examples-with-ring
+ (:require [ring.jetty])
+ (:require [net.cgrand.enlive-html.examples :as examples])
+ (:use [net.cgrand.enlive-html :as html :only [deftemplate at]]))
+
+(defn app [req] {:status 200
+ :headers {"Content-Type" "text/html"}
+ :body (examples/microblog-template "Hello you!"
+ [{:title "post #1"
+ :body "hello with dangerous chars: <>&"}
+ {:title "post #2"
+ :body "dolor ipsum"}])})
+
+(ring.jetty/run {:port 8080} app)
View
0 src/net/cgrand/enlive_html/examples.clj → examples/net/cgrand/enlive_html/examples.clj
File renamed without changes.
View
0 ...live_html/examples/inheritance/child.html → ...live_html/examples/inheritance/child.html
File renamed without changes.
View
0 ...ve_html/examples/inheritance/example1.clj → ...ve_html/examples/inheritance/example1.clj
File renamed without changes.
View
0 ...ive_html/examples/inheritance/layout.html → ...ive_html/examples/inheritance/layout.html
File renamed without changes.
View
BIN lib/tagsoup-1.2.jar
Binary file not shown.
View
46 pom.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>enlive</groupId>
+ <artifactId>enlive</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>enlive</name>
+ <description>a HTML selector-based (à la CSS) templating and transformation system for Clojure</description>
+ <scm>
+ <connection>scm:git:git://github.com/cgrand/enlive.git</connection>
+ <developerConnection>scm:git:ssh://git@github.com/cgrand/enlive.git</developerConnection>
+ <tag>75c369f2b9c7532a48aaf0621e7b9a58a1004df7</tag>
+ <url>http://github.com/cgrand/enlive</url>
+ </scm>
+ <repositories>
+ <repository>
+ <id>central</id>
+ <url>http://repo1.maven.org/maven2</url>
+ </repository>
+ <repository>
+ <id>clojure-snapshots</id>
+ <url>http://build.clojure.org/snapshots</url>
+ </repository>
+ <repository>
+ <id>clojars</id>
+ <url>http://clojars.org/repo/</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojure</artifactId>
+ <version>1.1.0-master-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ccil.cowan.tagsoup</groupId>
+ <artifactId>tagsoup</artifactId>
+ <version>1.2</version>
+ </dependency>
+ </dependencies>
+</project>
+
+<!-- This file was autogenerated by the Leiningen build tool.
+ Please do not edit it directly; instead edit project.clj and regenerate it.
+ It should not be considered canonical data. For more information see
+ http://github.com/technomancy/leiningen -->
View
5 project.clj
@@ -0,0 +1,5 @@
+(defproject enlive "1.0.0-SNAPSHOT"
+ :description "a HTML selector-based (à la CSS) templating and transformation system for Clojure"
+ :url "http://github.com/cgrand/enlive/"
+ :dependencies [[org.clojure/clojure "1.1.0-master-SNAPSHOT"]
+ [org.ccil.cowan.tagsoup/tagsoup "1.2"]])

0 comments on commit 79cd1a1

Please sign in to comment.
Something went wrong with that request. Please try again.