Re: [racket-users] How to identify the target of a symlink?

2017-09-28 Thread Neil Van Dyke
Hopefully the core Racket stuff does what you need.  If not, you might take a look at: http://www.neilvandyke.org/racket/canonicalize-path/ -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving

Re: [racket-users] How to identify the target of a symlink?

2017-09-28 Thread Jon Zeppieri
https://docs.racket-lang.org/reference/Manipulating_Paths.html?q=resolve-path#%28def._%28%28quote._~23~25kernel%29._resolve-path%29%29 On Thu, Sep 28, 2017 at 5:50 PM, David Storrs wrote: > The link-exists? function will tell me that something is a symlink. > How do I

[racket-users] How to identify the target of a symlink?

2017-09-28 Thread David Storrs
The link-exists? function will tell me that something is a symlink. How do I tell what it's pointing to? I'm writing code that must move data from one computer to another, and I need a way to say "create the file here and put the data in it" vs "create a symlink here that points to a file over

[racket-users] Re: Inside Racket Seminar 7. Alexis King on Hackett

2017-09-28 Thread Geoffrey Knauth
I missed this too but am very grateful for the YouTube link, after which I'm sure I'll grok the version at RacketCon better than I would have otherwise. Thanks! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group

[racket-users] Re: scribble newbie, myfunctionname undefined

2017-09-28 Thread Geoffrey Knauth
I got it to work: #lang scribble/manual @(require scribble/core scribble/eval foo) ... @(define my-eval (make-base-eval)) @interaction-eval[#:eval my-eval (require foo)] @examples[#:eval my-eval (magic) ] Thank Ben Greenman for your 2017-09-24 reply to jos.koot ("repeated code

Re: [racket-users] document as fn from strings to HTML/text

2017-09-28 Thread Jordan Johnson
Fantastic. Thank you, Neil & Ben. Regards, Jordan > On Sep 28, 2017, at 11:09, Neil Van Dyke wrote: > > If you don't care whether you edit in HTML syntax, and you'd like a slightly > more programming-ish interface, there's also: >

Re: [racket-users] scribble newbie, myfunctionname undefined

2017-09-28 Thread Ben Greenman
Try adding `#:eval foo-eval` to `interaction`. (I'm guessing that would work.) I'm more sure this will work: #lang scribble/manual @(require scribble/example "../main.rkt") ... @(define foo-eval (make-base-eval '(require "../main.rkt"))) @examples[#:eval foo-eval #:label #f (magic)

[racket-users] scribble newbie, myfunctionname undefined

2017-09-28 Thread Geoffrey Knauth
I hope this is an easy question for someone. I started a new foo package: raco pkg new foo I put my functions in foo/main.rkt. I saw a foo/scribblings/ dir, so I created a file foo/scribblings/foo.scribl. I've got a nice little doc file in there, which I can preview using: cd

Re: [racket-users] document as fn from strings to HTML/text

2017-09-28 Thread Neil Van Dyke
If you don't care whether you edit in HTML syntax, and you'd like a slightly more programming-ish interface, there's also: http://www.neilvandyke.org/racket/html-template/ -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] document as fn from strings to HTML/text

2017-09-28 Thread Ben Greenman
Yes, you can use scribble/html to define functions from lists to documents. For example, this scribble file calls a function to build an ` ... ` page: https://github.com/nuprl/gtp/blob/gh-pages/about.rkt and here's the function: https://github.com/nuprl/gtp/blob/gh-pages/templates.rkt#L124 --

[racket-users] document as fn from strings to HTML/text

2017-09-28 Thread Jordan Johnson
Hi all, Problem: I want to generate many documents from a source template (of which only a few small parts change, from doc to doc) and many groups of values. Ideally I’d like to be able to write files like this: *** template *** ... @(for/list ([item my-list]) (li item)) ... *** list