Add go meta tag generator

This commit is contained in:
Christine Dodrill 2015-02-01 16:33:18 -08:00
parent 0edad81da6
commit a79f6bca1f
3 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,7 @@ class extends lapis.Application
@include "controllers.hire"
@include "controllers.projects"
@include "controllers.go"
[index: "/"]: =>
@user, err = gh\get_authenticated_user()

7
controllers/go.moon Normal file
View File

@ -0,0 +1,7 @@
lapis = require "lapis"
class Go extends lapis.Application
[repo: "/go/:name"]: =>
@repo = @params.name
render: true

5
views/repo.moon Normal file
View File

@ -0,0 +1,5 @@
import Widget from require "lapis.html"
class Repo extends Widget
content: =>
meta name: "go-import", content: "christine.website/go/#{@repo} git https://github.com/Xe/#{@repo}"