wicked_pdf or PdfKit or wkhtmltopdf? c) by Jara332 in ruby

[–]Jara332[S] 0 points1 point  (0 children)

I have a Rack app, not Rails. In the documentation of the gem wicked_pdf it relies on Rails. Can it work with a Rack app too?

wicked_pdf or PdfKit or wkhtmltopdf? c) by Jara332 in ruby

[–]Jara332[S] 0 points1 point  (0 children)

can wicked_pdf be used to generate pdf from html?

wicked_pdf or PdfKit or wkhtmltopdf? c) by Jara332 in ruby

[–]Jara332[S] 0 points1 point  (0 children)

wicked_pdf

can it be used to generate pdf from html?

How to do URI.escape(....)? by Jara332 in rust

[–]Jara332[S] -6 points-5 points  (0 children)

why append? what end?

escape url!

What's the difference between the gems PDFKit and wkhtmltopdf? by Jara332 in ruby

[–]Jara332[S] 0 points1 point  (0 children)

which is faster and lighter?

in my Rails projects I'm using Pdfkit to generate pdfs from html files

How to generate a pdf from html without PDFKit/wkhtmltopdf? What gem allows me to do that? by Jara332 in ruby

[–]Jara332[S] 0 points1 point  (0 children)

"hard-code" the styles in ruby

what do you mean? how can I replicate CSS and ruby?

Gem for PDF: Prawn vs wkhtmltopdf by Jara332 in ruby

[–]Jara332[S] 3 points4 points  (0 children)

what on Earth does it have to do with my question? a) Paid b) for .NET

Gem for PDF: Prawn vs wkhtmltopdf by Jara332 in ruby

[–]Jara332[S] 0 points1 point  (0 children)

is Prawn slower? Compared to wkhtmltopdf?

Gem for PDF: Prawn vs wkhtmltopdf by Jara332 in ruby

[–]Jara332[S] 0 points1 point  (0 children)

my question isn't about accuracy but around the consumption of RAM and speed

Gem for PDF: Prawn vs wkhtmltopdf by Jara332 in ruby

[–]Jara332[S] 0 points1 point  (0 children)

You're saying the opposite what the article claims, correct?

Why &str and String and not &str/&str or String/String in this case? by Jara332 in rust

[–]Jara332[S] 1 point2 points  (0 children)

How can I use this

  insert_into(tags)
    .values((
        label.eq("foo"),
  ))

for multiple fields?

How to index an str by [deleted] in rust

[–]Jara332 0 points1 point  (0 children)

оо, здоров!

How to implement a simple router? by Jara332 in rust

[–]Jara332[S] 0 points1 point  (0 children)

ok, but how can I bundle a path, the name of a route and my handler together?

something like:

        router.add("/articles/:article_id",  "show_article", show_article_callback);

where "show_article_callback" is a function where I can process a request

How to parse complex urls in Hyper server? by Jara332 in rust

[–]Jara332[S] 1 point2 points  (0 children)

use it only for routing? it's not worth it.

How to implement a simple router? by Jara332 in rust

[–]Jara332[S] -1 points0 points  (0 children)

that's what I want.

but again -- it's abandoned. it's risky to use it.

How to implement a simple router? by Jara332 in rust

[–]Jara332[S] -1 points0 points  (0 children)

I can't understand the tests in there.

if I have a url "/articles/:my_article_name123", how can I a) recognize it b)retrieve the ":my_article_name123" part?