Skip to content

Commit

Permalink
res 폴더 skins 안으로 옮김
Browse files Browse the repository at this point in the history
  • Loading branch information
ybkimm committed May 26, 2019
1 parent b4a6e97 commit e5e7dc0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions internal/app/server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package server
import (
"net/http"

"go.ybk.im/homepage/internal/app/res"
"go.ybk.im/homepage/internal/app/res/compilers/raw"
"go.ybk.im/homepage/internal/app/server/handlers"
"go.ybk.im/homepage/internal/app/skins/res"
"go.ybk.im/homepage/internal/app/skins/res/compilers/raw"
)

const CssPath = "skin/style.css"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package raw

import "go.ybk.im/homepage/internal/app/res/compilers"
import (
compilers2 "go.ybk.im/homepage/internal/app/skins/res/compilers"
)

type Compiler struct {
contentType string
}

func NewCompiler(contentType string) compilers.Compiler {
func NewCompiler(contentType string) compilers2.Compiler {
return &Compiler{
contentType: contentType,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package scss
import (
"bytes"

"go.ybk.im/homepage/internal/app/res/compilers"
compilers2 "go.ybk.im/homepage/internal/app/skins/res/compilers"

"github.com/wellington/go-libsass"
)
Expand All @@ -12,7 +12,7 @@ type Compiler struct {
basePath string
}

func NewCompiler(basePath string) compilers.Compiler {
func NewCompiler(basePath string) compilers2.Compiler {
return &Compiler{
basePath: basePath,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (
"os"
"path/filepath"

"go.ybk.im/homepage/internal/app/res/compilers"
compilers2 "go.ybk.im/homepage/internal/app/skins/res/compilers"
)

type Handler struct {
compiled []byte
contentType string
}

func NewHandler(fileName string, compiler compilers.Compiler) *Handler {
func NewHandler(fileName string, compiler compilers2.Compiler) *Handler {
fileName = filepath.Clean(fileName)

_, err := os.Stat(fileName)
Expand Down

0 comments on commit e5e7dc0

Please sign in to comment.