juijs / store.jui.io

Store for JUI
http://store.jui.io
MIT License
5 stars 1 forks source link

[CORE] 개별 코드를 GIST 처럼 외부에 보일 수 있도록 한다. #51

Open easylogic opened 7 years ago

easylogic commented 7 years ago

syntax highlighting 적용된 간단한 코드 조각을 지원한다.

모든 타입, 모든 파일에 대해서

easylogic commented 7 years ago

이미지는 이미지대로 프리뷰를 제공한다.

easylogic commented 7 years ago

코드 조각

/v2/gist/id/index.html

이렇게 하면 파일 확장자에 따른 js 를 만들어준다.

code 는 개별 파일로 하면 될 듯 하고

module 과 page 는 이름을 정하자.


// module & page 
/v2/gist/id/module
/v2/gist/id/html
/v2/gist/id/sample
/v2/gist/id/css

// code 
/v2/gist/id/filepath/xxx.html 
easylogic commented 7 years ago

개별 코드는 마지막에 변경된 시점을 기준으로 캐슁한다.

easylogic commented 7 years ago

https://store.jui.io/v2/sample.html

코드 타입에서 구현 완료

<script src="//store.jui.io/v2/gist/57ea375b94976c775a8b4567/README.md"></script> 

형태로 구현함

easylogic commented 7 years ago

Gist 구현한 플러그인