"add_print_js" method for prawn-js? prawn-print?

10 views
Skip to first unread message

Henrik Nyh

unread,
Nov 27, 2009, 1:48:46 PM11/27/09
to prawn...@googlegroups.com
I'm guessing printing is a major use case for prawn-js. If so, would
it make sense to add an "add_print_js" method (whatever the method
name) to prawn-js? Or to make a prawn-print with prawn-js as a
dependency? Or simply a prawn-print without that dependency, as
prawn-js is very little code?

Happy to contribute it once I know where people think it should go.
There is print code in one of the prawn-js examples but it seems like
something you shouldn't need to define yourself.

"add_print_js" is probably a good name, analogous to method names in prawn-js.

This is the method we use currently: http://gist.github.com/244164

If someone uses prawn-js for other things than printing, it would be
very interesting to hear what that is, by the way.

Gregory Brown

unread,
Nov 27, 2009, 2:12:47 PM11/27/09
to prawn...@googlegroups.com
On Fri, Nov 27, 2009 at 1:48 PM, Henrik Nyh <hen...@nyh.se> wrote:
> I'm guessing printing is a major use case for prawn-js. If so, would
> it make sense to add an "add_print_js" method (whatever the method
> name) to prawn-js? Or to make a prawn-print with prawn-js as a
> dependency? Or simply a prawn-print without that dependency, as
> prawn-js is very little code?
>
> Happy to contribute it once I know where people think it should go.
> There is print code in one of the prawn-js examples but it seems like
> something you shouldn't need to define yourself.

Well, prawn_js isn't officially supported, though it could be if it
becomes especially valuable to our users. This is another one of
James's experiments, so he'd be the one to tell you whether a printing
method would be welcome.

-greg

James Healy

unread,
Dec 7, 2009, 5:46:33 AM12/7/09
to prawn...@googlegroups.com
Sure, I'll pull it in if you can put it in a fork. It's a completely
experimental library and as far as I know, no one else is using it in
production. No reason we can't stick more experiments in there.

I don't really like the API it currently has, if you are using it and
have suggestions on better methods names and such, go for your life and
hack away.

-- James Healy <ji...@deefa.com> Mon, 07 Dec 2009 21:45:40 +1100
Reply all
Reply to author
Forward
0 new messages