ディレクトリを散らかすつもりもないしそういうルールなら別に従うのだけど、
revel new
でアプリがGOPATH以下に作られたのでそう見えた。
GOPATHの勉強をしてないのでこの辺よくわかっていない
なし?
- 古いjQuery(1.9)に古いBootstrap(2)がpublic以下に直入れされている。無い方がマシ
- headタグ内にjQueryの読み込み+
moreScripts
の読み込みが入っている - debug.htmlの内部にscriptタグが直接書かれておりjQueryを使っているのでこれ以下に移動できない
- scriptタグの読み込みをfooter.html(閉じbodyの直前)に移動
- debug.html内のjsを
public/js/debug.js
として外出し- debug.html内のscriptタグが書かれていた箇所にappendを記述しmoreScriptsでdebug.jsを読み込むよう修正
- デフォルトで入っていたjQuery, Bootstrapを削除しBowerで置き換え
- 言語定義を複数ファイルに分けられるが、別ファイルとキー重複しないことを気にしなければならない
- 複数ファイルでキーが重複すると上書きが起こる(ファイル名が言語のキーに影響しないため衝突する)
Important note : while it's technically possible to define the same message key in multiple files with the same language, this will result in unpredictable behaviour. When using multiple files per language, take care to keep your message keys unique so that keys will not be overwritten after the files are merged!