GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: The web site for the Nu programming language
Homepage: http://programming.nu
Clone URL: git://github.com/timburks/programmingnu.git
Dropping vestigial Textile support after completing conversion to 
Markdown.

Originally the site used a Ruby implementation of Textile;
now it is formatted with NuMarkdown.
timburks (author)
Mon May 12 11:03:00 -0700 2008
commit  de17f47bc5301c9becbb7c60e177fcb1401e8bb2
tree    8bda272d7123281a8d6a74a84c7ad617246a9dce
parent  34a6709c0ead9ec9622e27489f377afa7f870a34
...
14
15
16
17
 
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
...
14
15
16
 
17
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
20
21
22
23
 
24
25
26
27
28
29
 
30
31
32
0
@@ -14,51 +14,19 @@
0
 
0
 (class NSString
0
      
0
- (- (id) markdownToHTML is (NuMarkdown convert:self))
0
+ (- (id) markdownToHTML is (NuMarkdown convert:self)))
0
      
0
- ;; Convert a Textile-formatted string to HTML.
0
- ;; Currently this goes out to Ruby.
0
- ;; It assumes that <code>/usr/local/bin/redcloth</code> contains:
0
- ;;
0
- ;; <code>
0
- ;; #!/usr/bin/ruby <br/>
0
- ;; require 'rubygems' <br/>
0
- ;; require 'RedCloth' <br/>
0
- ;; puts RedCloth.new(STDIN.read).to_html
0
- ;; </code>
0
- (- (id) _UNUSED_textileToHTML is
0
- (unless $textileCache (set $textileCache (dict)))
0
- (unless (set results ($textileCache objectForKey:self))
0
- (set input (NSPipe pipe))
0
- (set output (NSPipe pipe))
0
- (set task ((NSTask alloc) init))
0
- (task set:(launchPath:"/usr/local/bin/redcloth"
0
- standardInput:input
0
- standardOutput:output))
0
- ((input fileHandleForWriting) writeData:
0
- (self dataUsingEncoding:NSUTF8StringEncoding))
0
- ((input fileHandleForWriting) closeFile)
0
- (task launch)
0
- (task waitUntilExit)
0
- (set results ((NSString alloc)
0
- initWithData:((output fileHandleForReading) readDataToEndOfFile)
0
- encoding:NSUTF8StringEncoding))
0
- ($textileCache setValue:results forKey:self))
0
- results))
0
-
0
 (class NSDictionary
0
      
0
      (- (id) bodyAsHTML is
0
         (set body (self valueForKey:"body"))
0
         (case (self valueForKey:"format")
0
- ("textile" (body textileToHTML))
0
               ("markdown" (body markdownToHTML))
0
               (else body)))
0
      
0
      (- (id) extendedAsHTML is
0
         (set extended (self valueForKey:"extended"))
0
         (case (self valueForKey:"format")
0
- ("textile" (extended textileToHTML))
0
               ("markdown" (extended markdownToHTML))
0
               (else extended))))
0
 

Comments

    No one has commented yet.