Coder Social home page Coder Social logo

wig's Introduction

wig's People

Contributors

dependabot[bot] avatar zk33 avatar

Stargazers

 avatar

Watchers

 avatar

wig's Issues

負荷軽減

  • テンプレートのキャッシュを保持するようにしてテンプレートとdataの両方が更新されている場合に限りページがrender/保存されるようにする
  • 可能な限り更新されてるデータのみ読み込まれるようにする
  • データの読み込み処理をもうちょっとシンプルにできないか検討する

スプレッドシート対応する

Excelとcsv/tsvに対応する

【例】dataディレクトリにdata.xslxが置いてあったら

{{data.シート名.行ID.列ID}}でセル
{{data.シート名._rows}}で全部の行
{{data.シート名._cols}}で全部の列

にアクセスできる、的な感じ

rootにいるときの_rel_rootの値は「.」にする

{{_rel_root}}/xxxx/としているときにrootディレクトリ直下のファイルで_rel_rootがカラになるので絶対パスになって問題が起こるため。

{{_rel_root}}xxxxみたいにスラッシュつけないのを強制する方向もあるけどテンプレート綺麗じゃないのでナシで。

Markdown対応

  • dataに.mdのファイルがあったらパースしてHTMLとして読み込む
  • textとして読み込んだものをMarkdownとして出力するswig filterを書く
    • …のは専用のswigフィルタの便利パッケージを別に作るほうがいいかも

data処理のプラグイン対応化

dataファイルの拡張子(もしくは正規表現ベースのルール?)でファイル内容の処理を変えられるようにする。内部の構造もそういう作りに変える

差分レンダリング出来る仕組みを作る

dataが更新されている→そのdataが関連するページのみ更新する

templateが更新されている→そのテンプレートが関係するページのみ更新(includeとか考えると多分難しいので無理っぽいが検討してみる)

Documentation

  • wigで生成してサンプルを兼ねる
  • docsフォルダに入れて公開できるようにする
  • あわせてREADMEを更新する

yaml対応

markdownでyamlの仕組み入れるのでついでにyamlも対応してしまってよさそう

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.