GithubHelp home page GithubHelp logo

lanyon's People

Contributors

engstrom avatar jordic avatar mkaz avatar radioactivemouse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lanyon's Issues

make the project go gettable

If you move main.go into / then anyone with go installed can "go get github.com/mkaz/lanyon" and then the lanyon binary will be installed in $GOPATH/bin/ automatically.

As it stands you get the following

package github.com/mkaz/lanyon
    imports github.com/mkaz/lanyon
    imports github.com/mkaz/lanyon: no buildable Go source files in /Users/apokalyptik/gocode/src/github.com/mkaz/lanyon

Generate binaries for all platforms

Hi, this would be cool to generate binaries for all GO plateforms. This is a matter of minutes using GOX:

go get github.com/mitchellh/gox
gox -build-toolchain
gox

That's it!

./main.go:387: constant 3600000000000 overflows int

Hi when trying to build the script:

go build -o lanyon

I got this error:

# _/home/oumar/lanyon/src
./main.go:387: constant 3600000000000 overflows int
./main.go:387: constant 86400000000000 overflows int

I'm on Ubuntu 14.04!

Improve Request Logging

All request logs are based solely on request data and does not include any information regarding the response from the server. So it does not include info if served a 404 error, size of response or time taken to respond

  • include response status in log
  • include response size in bytes in log
  • include response time in log

404 page not found(windows)

there is a problem when running on windows. windows PathSeparator is "", while linux is "/".

// old 
	if !strings.HasSuffix(config.PublicDir, "/") {
		config.PublicDir = config.PublicDir + "/"
	}
// new
	separator := string(os.PathSeparator)
	if !strings.HasSuffix(config.PublicDir, separator) {
		config.PublicDir = config.PublicDir + separator
	}

less is not working

Hi, Good job here. Congrats.

I think the last lessc version (2.1.1) don't accept more --clean-css parameter. When used, the CSS file is not generated.

I just removed this parameter and less starts work. Line #231:

cmd := exec.Command(path, "--no-color", "--no-ie-compat", "--silent", "-su=off", "-sm=on", lessfile)

Thank you.

Doc error

In the README.md, the following script:

git clone https://github.com/mkaz/lanyon
cd lanyon/src
go get github.com/russross/blackfriday
go build -o lanyon

It should be:

git clone https://github.com/mkaz/lanyon
cd lanyon
go get github.com/russross/blackfriday
go build -o lanyon

Thus cd lanyon instead of cd lanyon/src.

lanyon error

run 'go build -o lanyon'

chmod 0777 lanyon

./lanyon
./lanyon: line 1: syntax error near unexpected token newline' ./lanyon: line 1: !'

nil pointer dereference

I was playing with the boxed example and changed the template config from templates to simplates. This resulted in:

2014/05/08 11:19:34 127.0.0.1:54052 -  [08/May/2014:11:19:34 -0400] "GET / HTTP/1.1" 
2014/05/08 11:19:34 http: panic serving 127.0.0.1:54052: runtime error: invalid memory address or nil pointer dereference
goroutine 4 [running]:
net/http.func·009()
/usr/local/go/src/pkg/net/http/server.go:1093 +0xae
runtime.panic(0x6b2900, 0xa55868)
/usr/local/go/src/pkg/runtime/panic.c:248 +0x106
text/template.(*Template).ExecuteTemplate(0x0, 0x7fd189842888, 0xc2100a6d20, 0xc21000ad70, 0x9, ...)
/usr/local/go/src/pkg/text/template/exec.go:112 +0x2e
main.applyTemplates(0xc2100ae34b, 0x4, 0xc2100af6c0, 0x315, 0x704d00, ...)
/home/jamesc/build/lanyon/src/main.go:325 +0x122
main.getMarkdownFile(0xc21000ac90, 0xf, 0x0, 0x0, 0x0, ...)
/home/jamesc/build/lanyon/src/main.go:201 +0x17e
main.getDirectoryListing(0xc21000ac80, 0x6, 0x0, 0x0, 0x0, ...)
/home/jamesc/build/lanyon/src/main.go:157 +0xe5
main.getRequest(0x7fd189842718, 0xc21009f320, 0xc210037750)
/home/jamesc/build/lanyon/src/main.go:112 +0x227
net/http.HandlerFunc.ServeHTTP(0x7ade20, 0x7fd189842718, 0xc21009f320, 0xc210037750)
/usr/local/go/src/pkg/net/http/server.go:1220 +0x40
net/http.(*ServeMux).ServeHTTP(0xc21001e6f0, 0x7fd189842718, 0xc21009f320, 0xc210037750)
/usr/local/go/src/pkg/net/http/server.go:1496 +0x163
net/http.serverHandler.ServeHTTP(0xc21001fbe0, 0x7fd189842718, 0xc21009f320, 0xc210037750)
/usr/local/go/src/pkg/net/http/server.go:1597 +0x16e
net/http.(*conn).serve(0xc21005e780)
/usr/local/go/src/pkg/net/http/server.go:1167 +0x7b7
created by net/http.(*Server).Serve
/usr/local/go/src/pkg/net/http/server.go:1644 +0x28b

Build was done with Go 1.2.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.