{"action":"created","issue":{"url":"https://api.github.com/repos/pugjs/pug/issues/2410","repository_url":"https://api.github.com/repos/pugjs/pug","labels_url":"https://api.github.com/repos/pugjs/pug/issues/2410/labels{/name}","comments_url":"https://api.github.com/repos/pugjs/pug/issues/2410/comments","events_url":"https://api.github.com/repos/pugjs/pug/issues/2410/events","html_url":"https://github.com/pugjs/pug/issues/2410","id":158179207,"number":2410,"title":"Website Plan","user":{"login":"ForbesLindesay","id":1260646,"avatar_url":"https://avatars.githubusercontent.com/u/1260646?v=3","gravatar_id":"","url":"https://api.github.com/users/ForbesLindesay","html_url":"https://github.com/ForbesLindesay","followers_url":"https://api.github.com/users/ForbesLindesay/followers","following_url":"https://api.github.com/users/ForbesLindesay/following{/other_user}","gists_url":"https://api.github.com/users/ForbesLindesay/gists{/gist_id}","starred_url":"https://api.github.com/users/ForbesLindesay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForbesLindesay/subscriptions","organizations_url":"https://api.github.com/users/ForbesLindesay/orgs","repos_url":"https://api.github.com/users/ForbesLindesay/repos","events_url":"https://api.github.com/users/ForbesLindesay/events{/privacy}","received_events_url":"https://api.github.com/users/ForbesLindesay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pugjs/pug/milestones/2","html_url":"https://github.com/pugjs/pug/milestones/2.0.0%20-%20Modules%20and%20Plugins","labels_url":"https://api.github.com/repos/pugjs/pug/milestones/2/labels","id":558592,"number":2,"title":"2.0.0 - Modules and Plugins","description":"","creator":{"login":"ForbesLindesay","id":1260646,"avatar_url":"https://avatars.githubusercontent.com/u/1260646?v=3","gravatar_id":"","url":"https://api.github.com/users/ForbesLindesay","html_url":"https://github.com/ForbesLindesay","followers_url":"https://api.github.com/users/ForbesLindesay/followers","following_url":"https://api.github.com/users/ForbesLindesay/following{/other_user}","gists_url":"https://api.github.com/users/ForbesLindesay/gists{/gist_id}","starred_url":"https://api.github.com/users/ForbesLindesay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForbesLindesay/subscriptions","organizations_url":"https://api.github.com/users/ForbesLindesay/orgs","repos_url":"https://api.github.com/users/ForbesLindesay/repos","events_url":"https://api.github.com/users/ForbesLindesay/events{/privacy}","received_events_url":"https://api.github.com/users/ForbesLindesay/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":66,"state":"open","created_at":"2014-02-04T15:26:30Z","updated_at":"2016-08-06T02:59:43Z","due_on":"2015-11-08T00:00:00Z","closed_at":null},"comments":4,"created_at":"2016-06-02T16:06:24Z","updated_at":"2016-08-06T06:27:39Z","closed_at":null,"body":" - [x] Create a separate repo for pug website (`pug-www`), containing a node.js website\r\n - [x] Create a repo for the English pug documentation (`pug-en`)\r\n\r\n## Infrastructure Tasks\r\n\r\n - [ ] Add css (less?) and pug (obviously) templating\r\n - [x] Add a browserified JavaScript file\r\n - [ ] Style and layout similar to https://facebook.github.io/jest/ using the pug logo and colors from the pug logo\r\n - [ ] Pull content from either `../pug-en` on local file system or `https://github.com/pugjs/pug-en` if that doesn't exist. (We can use [gethub](https://github.com/ForbesLindesay/gethub) to automatically pull it into a local \"cache\" dir.\r\n - [ ] Render content as markdown with embedded React Elements.  Render the embedded react elements both server-side and client side.\r\n - [x] Write React component for pug source and output (use https://github.com/ForbesLindesay/react-code-mirror for the editor?). Output should have three modes:\r\n    - JavaScript (use UglifyJS to beautify this)\r\n    - HTML\r\n    - Beautified HTML\r\n\r\n## Content Tasks\r\n\r\n - [ ] convert all current screens into markdown files within pug-en, including embedded react elements for dynamic pug code.\r\n\r\n## General Thoughts\r\n\r\nWhat's the best syntax for embedding dynamic/custom elements inside markdown.  Is there any prior art on this?  We could just use HTML syntax?  I don't think we should use pug as it's not really designed for such large blocks of content and may be more painful to translate.\r\n\r\nHow should we define the examples?  It would be cool to have some kind of \"file system\" mocked out by implementing `fs.readdirSync`, `fs.readFileSync` and `fs.writeFileSync`, that way we could have proper dynamic demos of extends/includes.\r\n\r\nCould we use brcdn.org (which I need to fix as it currently keeps running out of memory) to dynamically fetch the relevant jstransformers to make filters work client side?  Probably a decent stretch goal but not something for v1.\r\n\r\nCan we re-introduce something like the old test page, but extended and made even more awesome:\r\n\r\n - It should let you add/remove/edit pug files in a virtual file system\r\n - It should let you define both options and locals using JavaScript syntax\r\n - It should let you see the output of compiling each file in each stage of the process (lexer output, parser output, loader output, linker output, code-gen output, html, beautified html).\r\n\r\n## Deployment\r\n\r\nI'll write a script to use travis to auto-deploy to amazon S3 as it's faster & more reliable than GitHub pages.\r\n\r\n## Domain\r\n\r\nI intend to host it at `pugjs.org` as it's more consistent with the rest of our branding, but will make `pug-lang.com` redirect as people are already starting to hit that domain.  Once we have something workable we can redirect jade-lang.com."},"comment":{"url":"https://api.github.com/repos/pugjs/pug/issues/comments/238008706","html_url":"https://github.com/pugjs/pug/issues/2410#issuecomment-238008706","issue_url":"https://api.github.com/repos/pugjs/pug/issues/2410","id":238008706,"user":{"login":"TimothyGu","id":1538624,"avatar_url":"https://avatars.githubusercontent.com/u/1538624?v=3","gravatar_id":"","url":"https://api.github.com/users/TimothyGu","html_url":"https://github.com/TimothyGu","followers_url":"https://api.github.com/users/TimothyGu/followers","following_url":"https://api.github.com/users/TimothyGu/following{/other_user}","gists_url":"https://api.github.com/users/TimothyGu/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyGu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyGu/subscriptions","organizations_url":"https://api.github.com/users/TimothyGu/orgs","repos_url":"https://api.github.com/users/TimothyGu/repos","events_url":"https://api.github.com/users/TimothyGu/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyGu/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T06:27:39Z","updated_at":"2016-08-06T06:27:39Z","body":"An update. Things are beginning to look pretty good.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1538624/17455158/2b612fa6-5b64-11e6-9361-fd43d2327ece.png)\r\n"}}
{"actor":{"display_login":"TimothyGu"}}