予測できない形式の大量のデータに関するレポートを生成するサイトに取り組んでいます。私の(現在の)計画は、コンテンツを次のように整理することです。
/content/raw/ # holds raw .csv, .json, .etc, isn't routed
/content/data/ # holds ruby scripts to generate nice formatted
# JSON from the appropriate raw data files,
# routed to /data/*.json
/content/listings/ # holds ruby scripts to generate JSON which represents
# an HTML table or HighChart object and based upon the
# formatted data items above, routed to /listings/*.json
# (and imported via AJAX to display on appropriate pages)
/content/assets/ # mostly passed through, filtering SASS to CSS, routed to
# /assets/*.ext
/content/pages/ # holds Markdown pages filtered to HTML and included in a
# layout, with a special helper to inject graphs/tables
# by identifying a listing item, routed to /*index.html
ただし、これが最善の方法であるかどうかはわかりません。特に、nanoc の操作方法がわからないので、たとえば、新しいバージョンに置き換えられた生データ ファイルに依存するリストを再生成することを知っています。また、項目自体から Ruby コードを使用するようにルールを作成する方法も知っておく必要があります (これが良い方法かどうかはわかりません)。考え?