Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Ongoing build / template process improvements #264

Closed
11 of 13 tasks
snostorm opened this issue Mar 4, 2015 · 3 comments
Closed
11 of 13 tasks

Ongoing build / template process improvements #264

snostorm opened this issue Mar 4, 2015 · 3 comments

Comments

@snostorm
Copy link
Contributor

snostorm commented Mar 4, 2015

This carries my wish list from #257

Open questions:

High Level:

  • Proof-of-concept metadata tracking around using alternative templates on certain articles
  • Tracking a manifest of what articles are to be created (for i18n cross-linking.)
  • Proof-of-concept page that is not markdown based. Example: the homepage shouldn't really be a markdown file, but I may make a new page (like downloads/ release history/ etc.) as a test.
  • Live reload integration

Changes:

  • The "templates" task will now parse .html files per-language, not just Markdown
  • The English index.md switches .html, uses a dynamic list of downloads
    • partially done, see home.html proof of concept
  • Adds Handlebar "helper" {{i18n ...}} for looking up dynamic or (if desired) static key
  • Adds Handlebar "helper" {{hb ...}} for parsing i18n strings with nested variables
  • Adds Handlebar "helper {{link ...}} for easy i18n-friendly links, or more manual links

Merged:

  • i18n deep merge (from template.json files against English defaults)
  • Switches source/project.json to source/project.js to allow dynamic "stuff" like download link lists

Example of nested variables (template.json)

{
  "verbose_version": "Version {{project.current_version}}",
  "home_download_links": "Download for {{> current_download_links}}"
}
snostorm added a commit that referenced this issue Mar 4, 2015
snostorm added a commit that referenced this issue Mar 4, 2015
therebelrobot added a commit that referenced this issue Mar 5, 2015
@snostorm
Copy link
Contributor Author

snostorm commented Mar 5, 2015

I'll post the next PR which adds some of the "Changes" section of to dos once #269 lands.

@snostorm
Copy link
Contributor Author

snostorm commented Mar 5, 2015

#276 adds most of what was discussed under "Changes"

@arthurvr
Copy link
Contributor

arthurvr commented Apr 3, 2015

Live reload integration

The way our current development server is setup is the worst for doing front-end work. #302 for a suggestion of mine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants