1. Fred T-H
  2. blogerl


Fred T-H  committed 55a1176

reworking to make work with rebar without agner

  • Participants
  • Parent commits e8317b9
  • Branches default

Comments (0)

Files changed (7)

File README.markdown

View file
  • Ignore whitespace
 You need to have Erlang, agner and agnerized rebar installed (`agner install rebar`):
-	rebar get-deps
-	rebar compile
+	./rebar get-deps
+	./rebar compile
 	cd rel/
-	./build.sh
+	escript build.sh
 And the Blogerl release is compiled. Try to compile the blogerl demo blog:

File apps/blogerl/ebin/blogerl.app

View file
  • Ignore whitespace
 {application, blogerl,
- [{description, "A tiny blog engine that generates flat HTML"},
+ [{description, "A tiny blog engine that generates flat HTML and supports markdown"},
   {vsn, "0.9.0"},
   {modules, [blog]},
-  {applications, [stdlib, kernel, erlydtl, markdown]},
-  {agner, [{requires, ["erlydtl","markdown","mochiweb"]}]}]}.
+  {applications, [stdlib, kernel, erlydtl, markdown]}]}.

File demo-blog/src/base.tpl

View file
  • Ignore whitespace
     <link rel="shortcut icon" href="{{ url.img }}favicon.ico" type="image/x-icon"/>
     <title>Blogerl Demo -> {% block title %}{{ meta.title }}{% endblock %}</title>
     <link rel="stylesheet" href="{{ url.css }}screen.css" media="screen, projection" />
-    <link href="{{ url.base }}feed.rss" type="application/rss+xml" rel="alternate" title="ferd.ca newsfeed" />
+    <link href="{{ url.base }}feed.rss" type="application/rss+xml" rel="alternate" title="blog newsfeed" />

File demo-blog/src/rss.tpl

View file
  • Ignore whitespace
 <?xml version="1.0"?>
 <rss version="2.0">
-    <title>Ferd.ca</title>
+    <title>My Blog</title>
     <link>{{ url.base }}</link>
     <description>My own blog about programming and whatnot.</description>

File rebar

  • Ignore whitespace
Binary file added.

File rebar.config

View file
  • Ignore whitespace
 {sub_dirs, ["apps/blogerl"]}.
-{require_otp_vsn, "R14"}.
-{rebar_plugins, [agner_rebar_plugin]}.
+{require_otp_vsn, "R14|R15"}.
 {lib_dirs, ["apps"]}.
+{deps_dir, "apps"}.
+{deps, [{erlydtl,  ".*", {git, "git://github.com/evanmiller/erlydtl.git", "master"}},
+        {mochiweb, ".*", {git, "git://github.com/mochi/mochiweb.git", "master"}},
+        {markdown, ".*", {git, "git://github.com/ferd/erlmarkdown.git", "master"}}]}.

File rel/rel.conf

View file
  • Ignore whitespace
 {sys, [
-    {lib_dirs, ["../apps/", "../apps/blogerl/deps/"]},
+    {lib_dirs, ["../apps/"]},
     {rel, "blogerl", "0.9.0",