[ANN] chic-text 0.2.0 - Helpful functions for formatting console output

2015-03-07 Thread Ryan McGowan
chic-text  is a library of functions 
that formats strings for console output.  It allows content to be specified 
in columns (sequence of strings) or functions of a collection (one function 
per column, one item in the collection per row). It even defines a summary-fn 
for integration 
 with 
clojure.tools.cli .

I am using this in incise . This library 
was spun off of that project, so yeah, it is small and simple, but I 
figured others could benefit from it.

I'd be happy for any feedback/contribution. Thanks!

   - Main - http://www.ryanmcg.com/chic-text/
   - API - http://www.ryanmcg.com/chic-text/api/
   - Source - https://github.com/RyanMcG/chic-text

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ANN: fixturex, A library for creating and using fixtures

2015-02-07 Thread Ryan McGowan
Fixturex is a library of functions and macros for using and creating 
fixtures. It is particularly useful when namespace level fixtures are not 
specific enough.

I'd be happy for any feedback/contribution. Thanks!

   - Main - http://www.ryanmcg.com/fixturex/
   - API - http://www.ryanmcg.com/fixturex/api/
   - Source - https://github.com/RyanMcG/fixturex


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Cryogen - Static Site Generator

2014-11-22 Thread Ryan McGowan
Pretty cool. I'll have to compare it with incise 
 in detail later.

On Thursday, November 13, 2014 1:27:44 PM UTC-8, Carmen La wrote:
>
> Check out my first project! As the title says, it's a static site 
> generator :)
>
> Blog post: http://carmenla.me/blog/posts/12-11-2014-post1.html
> Github repo: https://github.com/lacarmen/cryogen
>
> Any feedback is appreciated :)
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Stasis - not another static site framework

2014-01-23 Thread Ryan McGowan
Thanks! I agree. I think they both have there uses as things stand right 
now.

Maybe Incise could even use Stasis as a lib to build its more elaborate 
> features on top of?


I was thinking the same thing. Unfortunately, I think there are a few 
blockers right now (serving is done very differently, string content is not 
required). I'll have to think more about how the stasis way of serving and 
exporting compares to incise's.

On Thursday, January 23, 2014 6:07:32 PM UTC-8, Magnar Sveen wrote:
>
> Very minimalist. I appreciate that.
>>
>
> Thank you :-) And let me say that out of the five frameworks, I think 
> Incise is the most exciting - with its focus on extensibility.
>
> This makes sharing implementations easier. The stasis way to do this is 
>> for everyone to write it and integrate themselves.  Often the later is more 
>> fun and offers a bit more control, but the former is easier.
>>
>
> Agreed. Now, I prefer control and fun over ease - but that might be a bad 
> choice in many situations.
>
> My feeling is that both Stasis and Incise have their place, and can live 
> happily alongside each other. Maybe Incise could even use Stasis as a lib 
> to build its more elaborate features on top of?
>
> - Magnar
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ANN] Stasis - not another static site framework

2014-01-23 Thread Ryan McGowan
Very minimalist. I appreciate that. As the author of incise I'd like to 
point out a few things though. :)

   1. You did not specifically say that incise forced some sort of 
   templating option though it was implied (along with the other static site 
   generators). Incise does not force any such options on you (in fact hiccup 
   will not even be included in incise-core in 0.2.0). It is also not specific 
   to html file generation though there are some helpful functions built in to 
   incise to support that very common use case. The layouts feature (similar 
   to create-page in what-the-emacs) is entirely opt in as well.
   2. You can create your own stylesheets too. I'm not sure what this was 
   getting at...
   3. While incise does require an input directory and an output directory 
   it is configurable.

Of course, if stasis has been around when I decided I wanted to start a 
blog, incise probably wouldn't be around. The two tools can be 
easily contrasted by this statement though:

No configuration options. You have to make them.
>

Incise's goal is to be extensible so someone can write an asciidoc parser 
(that may take some user defined configuration options) that leverages all 
of the other things that have already been done by integrating with it. 
 This makes sharing implementations easier. The stasis way to do this is 
for everyone to write it and integrate themselves.  Often the later is more 
fun and offers a bit more control, but the former is easier.

Those are my initial thoughts at least.

On Thursday, January 23, 2014 2:31:17 AM UTC-8, Magnar Sveen wrote:
>
> Oh, look at that. Thanks! :)
>
>
> On Thu, Jan 23, 2014 at 11:27 AM, Dmitry Groshev 
> 
> > wrote:
>
>> And here is a link to the project, just in case you've missed it like I 
>> did: https://github.com/magnars/stasis :)
>>
>>
>> On Thursday, January 23, 2014 2:16:48 PM UTC+4, Magnar Sveen wrote:
>>>
>>> Stasis
>>>
>>> A Clojure library of tools for developing static web sites.
>>> Another
>>>  
>>> static site framework? Why? 
>>>
>>> Well, that's exactly it. I didn't want to use a framework. I don't like 
>>> the restrained feeling I get when using them. I prefer coding things over 
>>> messing around with configuration files.
>>>
>>> I want to
>>>
>>>- code my own pages
>>>- set up my own configuration
>>>- choose my own templating library
>>>- create my own damn stylesheets
>>>
>>> *Statis offers a few functions that are pretty useful when creating 
>>> static web sites.*
>>>
>>> No more. There are no batteries included.
>>>
>>> If you want a framework that makes it really quick and easy to create a 
>>> blog, you should take a look at these:
>>>
>>>- misaki  is a Jekyll inspired 
>>>static site generator in Clojure. 
>>>- Madness  is a static site 
>>>generator, based on Enlive and Bootstrap.
>>>- Static  is a simple static site 
>>>generator written in Clojure. 
>>>- Ecstatic  creates static web pages and 
>>>blog posts from Hiccup templates and Markdown.
>>>- incise  is an extensible static 
>>>site generator written in Clojure. 
>>>
>>> They generally come with a folder where you put your blog posts in some 
>>> templating language, and a set of configuration options about how to set up 
>>> your blog. They often generate code for you to tweak.
>>>  Usage 
>>>
>>> The core of Stasis is two functions: serve-pages and export-pages. Both 
>>> take a map from path to contents:
>>>
>>> (def pages {"/index.html" "Welcome!"})
>>>
>>> The basic use case is to serve these live on a local server while 
>>> developing - and then exporting them as static pages to deploy on some 
>>> server.
>>> Serving
>>>  
>>> live pages locally 
>>>
>>> Stasis can create a Ring handler to serve your pages.
>>>
>>> (ns example
>>>   (:require [stasis.core :as stasis]))
>>> (def app (stasis/serve-pages pages))
>>>
>>> Like with any Ring app, you point to your app in project.clj:
>>>
>>> :ring {:handler example/app}
>>>
>>> and start it with lein ring server-headless.
>>> Exporting
>>>  
>>> the pages 
>>>
>>> To export, just give Stasis some pages and a target directory:
>>>
>>> (defn export []
>>>   (stasis/export-pages pages target-dir))
>>>
>>> When you've got this function, you can create an alias for leiningen:
>>>
>>> :aliases {"build-site" ["run" "-m" "example/export"]}
>>>
>>> and run lein build-site on the command line. No need for a lein plugin.
>>>  Exa

Re: [ANN] incise 0.1.0 - An extensible static site generator

2014-01-14 Thread Ryan McGowan
Hey Jan,

My decisions were mostly in an effort to reduce the number of hard
dependencies. If you do a search on the incise repository for
"hiccup"<https://github.com/RyanMcG/incise/search?q=hiccup&ref=cmdform>,
you'll see it is not used in any core functionality (besides server to
generate a trivial 404 page). The only place hiccup is really used are in
layout implementations. You could easily implement a layout without using
any of the helper macros (deflayout, defpartial) that supports hiccup
instead. Version 0.2.0 is going to break apart the project to remove as
many dependencies as possible from incise-core.

Thanks,

Ryan


On Tue, Jan 14, 2014 at 12:26 AM, Jan Herich  wrote:

> Hello Ryan,
>
> Thank you for the project, i was always missing a good static site
> generator written in clojure !
> You took some interesting design decisions with extensibility. I'm
> currently working on the
> similar project <https://github.com/janherich/gutenberg>, even if my
> design is very different, because my needs are different - i want to
> have templates in pure html and be able to declaratively specify specific
> areas, because of that
> my project is based on enlive html library.
>
>
> Dňa utorok, 14. januára 2014 8:35:33 UTC+1 Ryan McGowan napísal(-a):
>
>> Hi all!
>>
>> After consuming quite a bit of my spare time for the past several months,
>> I have finally released version 0.1.0 <https://clojars.org/incise> of
>> incise. It is a static site generator written in Clojure (of course). I
>> like it quite a bit and I think others might benefit from it too.  I am
>> very open to contributions, suggestions or criticisms (just open an
>> issue) <https://github.com/RyanMcG/incise/issues>.
>>
>> Necessary links:
>>
>>- https://clojars.org/incise
>>- http://www.ryanmcg.com/incise/ - README generated into website
>>using itself (it's called being meta).
>>- https://github.com/RyanMcG/incise
>>- https://github.com/RyanMcG/lein-incise - Yes there is a plugin
>>- http://www.ryanmcg.com/2014/1/13/static-website-generation-
>>with-incise/ - Very short post about it. Basically points to the
>>README and makes the disclaimer that it's not a big deal.
>>- https://github.com/RyanMcG/incise-example-project - super simple
>>example project
>>- http://www.ryanmcg.com/incise-example-project/ - and its generated
>>output
>>
>> Thanks,
>>
>> Ryan McGowan
>>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/8AI4JIfVCB8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[ANN] incise 0.1.0 - An extensible static site generator

2014-01-13 Thread Ryan McGowan
Hi all!

After consuming quite a bit of my spare time for the past several months, I 
have finally released version 0.1.0 <https://clojars.org/incise> of incise. 
It is a static site generator written in Clojure (of course). I like it 
quite a bit and I think others might benefit from it too.  I am very open 
to contributions, suggestions or criticisms (just open an 
issue)<https://github.com/RyanMcG/incise/issues>
.

Necessary links:

   - https://clojars.org/incise
   - http://www.ryanmcg.com/incise/ - README generated into website using 
   itself (it's called being meta).
   - https://github.com/RyanMcG/incise
   - https://github.com/RyanMcG/lein-incise - Yes there is a plugin
   - http://www.ryanmcg.com/2014/1/13/static-website-generation-with-incise/ - 
   Very short post about it. Basically points to the README and makes the 
   disclaimer that it's not a big deal.
   - https://github.com/RyanMcG/incise-example-project - super simple 
   example project
   - http://www.ryanmcg.com/incise-example-project/ - and its generated 
   output
   
Thanks,

Ryan McGowan

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[ANN] manners 0.2.0 released

2013-11-27 Thread Ryan McGowan
A validation library built on using predicates properly.

I just released a new version of my take on a simple, general purpose 
validation library.  Version 0.2.0 includes a chaining feature very much 
like (and inspired by) the chain function in 
vlad, 
another validation library. For the remote few who are familiar with 
manners, to implement this the definition of a manner has changed slightly 
to allow one or more predicate message pairs (previously only one was 
allowed).

https://github.com/RyanMcG/manners

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[ANN] manners - Yet another validation library built on using predicates properly

2013-09-15 Thread Ryan McGowan
It's my first library. I created it to assist with another project I have 
yet to release and because of some inspiration I got from reading Functional 
JavaScriptby
 
Fogus  though it is certainly not a port of his efforts 
there.  Anyway, there is a bunch more in the 
README. 
It is already published to clojars and can be included in your project by 
adding `[manners "0.1.0"]` to your dependencies.

I am very open to criticisms and improvements.

https://github.com/RyanMcG/manners

Thanks,

Ryan

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: http-kit on heroku?

2013-04-14 Thread Ryan McGowan
Maik is right. However, if you still want an example application you can 
check out a side project  of mine. It 
works just fine on Heroku.

Originally it was a noir/jetty application which I have since moved to 
http-kitand
 Compojure. Enjoy :)

On Sunday, April 14, 2013 2:36:44 PM UTC-4, Maik Schünemann wrote:
>
> I don't have an example of deploying http-kit on Heroku, but I think it 
> should be straightforward - basically your local setup should work on 
> heroku.
> Just like you can deploy your application, which starts up jetty to heroku 
> I think you can deploy your http-kit application on heroku.
> The only think to remember is that the port of the server is stored in the 
> port environment variable.
>
> So,
> just try :)
>
>
> On Sat, Apr 13, 2013 at 11:22 PM, Wei Hsu 
> > wrote:
>
>> Does anyone have an example of deploying http-kit on Heroku? The official 
>> example  uses Jetty. 
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [ANN] lib-noir 0.1.1

2012-06-28 Thread Ryan McGowan
I just wanted to say that this seems like a great idea.

+1

On Saturday, June 23, 2012 11:08:47 PM UTC-7, Anthony Grimes wrote:
>
> Chris Granger and I decided that a lot of the stuff in Noir is also useful 
> outside of Noir, so I took a bunch of Noir's middleware and such and split 
> it out into a
> new library called lib-noir. You can find it here:
>
> https://github.com/noir-clojure/lib-noir
>
> It has Noir's stateful session/flash middleware, cookie middleware, 
> validation middleware, encryption utilities, and my personal favorite, some 
> utilities for
> creating ring response maps (higher level than ring.util.response).
>
> All of these things are completely independent of Noir. They are can be 
> used from any ring-based web framework, and my motivation for doing it was 
> actually
> so I could use stateful sessions and the response utils in Compojure apps. 
> These things will be maintained completely separately from noir from now on.
>
> The stateful session and flash stuff works mostly the same as sandbar's 
> does, but sandbar tends to stay a little out of date, so hopefully this 
> will make for
> a great alternative for people having issues with it.
>
> We hope you enjoy these things!
>
> ( First announcement on the Noir group: 
> https://groups.google.com/d/topic/clj-noir/0BkySc8gG90/discussion )
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en