Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-08 Thread George Neuner
On 4/8/2020 6:09 PM, Brian Adkins wrote: Thanks for the info George. Are you feeding that entire template (after substituting the @ variables) into the smtp-send-message function as the message argument i.e. a list of lines? Yes. I'm also curious about having "subject" in the template

Re: [racket-users] Suggestions for "The Racket Guide"

2020-04-08 Thread Matthew Butterick
I use the same Clipboard.js library on Beautiful Racket to support code copying. (I use v.1.5.15, though apparently the lib is now at 2.0.6). I've not had any problems or complaints. One wrinkle in implementation is that you don't want to pass formatted HTML to the clipboard. Obviously, what

Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-08 Thread Brian Adkins
On Wednesday, April 8, 2020 at 6:09:14 PM UTC-4, Brian Adkins wrote: > > On Wednesday, April 8, 2020 at 1:46:43 PM UTC-4, gneuner2 wrote: >> >> >> On 4/8/2020 12:54 PM, Brian Adkins wrote: >> > I was able to write a simple wrapper around smtp-send-message and get >> > it working through SendGrid

Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-08 Thread Brian Adkins
On Wednesday, April 8, 2020 at 1:46:43 PM UTC-4, gneuner2 wrote: > > > On 4/8/2020 12:54 PM, Brian Adkins wrote: > > I was able to write a simple wrapper around smtp-send-message and get > > it working through SendGrid in a few minutes (see below), but I wasn't > > able to find any examples of

[racket-users] Another suggestion for "The Racket Guide"

2020-04-08 Thread James Platt
While we are looking at the possibility of improving The Guide, one of the things which I find confusing in Racket documentation is that The Guide, The Reference and various manuals all look the same. On several occasions I have started in The Guide, followed links, and then discover that I am

Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-08 Thread George Neuner
On 4/8/2020 12:54 PM, Brian Adkins wrote: I was able to write a simple wrapper around smtp-send-message and get it working through SendGrid in a few minutes (see below), but I wasn't able to find any examples of sending emails containing both a plain text version and HTML version. Can anyone

[racket-users] Re: Suggestions for "The Racket Guide"

2020-04-08 Thread Greg Trzeciak
I forgot the dependecy used: http://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.4.2/clipboard.min.js";> On Wednesday, April 8, 2020 at 7:24:20 PM UTC+2, Greg Trzeciak wrote: > > Found in an old file of mine: > > > 'use strict'; > var codeblock =

Re: [racket-users] Suggestions for "The Racket Guide"

2020-04-08 Thread Robby Findler
The information is there at the source level in the way the evaluators are used but I guess it gets discarded by the time the code gets to html. There is also the issue that some of the context code is relevant and some isn't, so not all of the information is actually there to make the most

[racket-users] Re: Suggestions for "The Racket Guide"

2020-04-08 Thread Greg Trzeciak
Found in an old file of mine: 'use strict'; var codeblock = document.getElementsByTagName('blockquote'); for (var i = 0;i

Re: [racket-users] Suggestions for "The Racket Guide"

2020-04-08 Thread Sorawee Porncharoenwase
Thoughts: - I take a look at the compiled HTML document. It doesn't seem suffice to only change JavaScript because the information about "what is the input" is pretty much lost at the HTML level. - IIUC, Scribble targets older version of HTML (HTML4?), so it doesn't really care about the

Re: [racket-users] Suggestions for "The Racket Guide"

2020-04-08 Thread Ben Greenman
On 4/8/20, Stephen De Gabrielle wrote: > That’s a good suggestion! Do you know the relevant JavaScript we can try it > out with. Might be an easy PR. > Beware that snippets are not always self-contained. A button should grab any requires and earlier code needed to make the example run. That'd

[racket-users] Suggestions for "The Racket Guide"

2020-04-08 Thread Stephen De Gabrielle
That’s a good suggestion! Do you know the relevant JavaScript we can try it out with. Might be an easy PR. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[racket-users] Examples of sending HTML email w/ Racket?

2020-04-08 Thread Brian Adkins
I was able to write a simple wrapper around smtp-send-message and get it working through SendGrid in a few minutes (see below), but I wasn't able to find any examples of sending emails containing both a plain text version and HTML version. Can anyone point me to some examples? Thanks, Brian

Re: [racket-users] Re: Working with JSON using Typed Racket

2020-04-08 Thread Phil Nguyen
For parsing JSON in Typed Racket, you can check out this library I made: https://github.com/philnguyen/json-type-provider . You can declare structs and field names that match the underlying data, and get back a well-typed parser. Don't let the name "type provider" fool you though, it's nothing