It’s actually not that difficult once you start experimenting with it. The polymer team also have a series of YouTube videos that explain different aspects.
The good news is, we’re all learning as we go. We should share our knowledge and insights here, and focus on the bits that make us happy. I like making words look pretty!
As I understand it, the core philosophy is to “use the platform”, and to stay as close as possible to what is provided by the browser. So for the things that I do, anyway, it’s more a matter of supplementing what’s possible with vanilla HTML/CSS. But I don’t do the complicated stuff.
This is a repository for custom elements - with lovely MD names like paper-toast. Using these elements seems pretty straightforward, just link in the script and use the tags. The more involved side of things is creating our own custom elements, such as a <suttaplex>. Am I within a yojana?
The general idea is that we try to use the stock Polymer elements as much as possible, as we can rely on them being well made and fitting our overall MD theme. So far we haven’t made a list of modified or custom elements. It would be good to do so at some point, although I’m not sure if we’re there yet: it’s all still early days and everything might change. (In fact it will, as we will upgrade to Polymer 2.0 when that is released: the production site will be Polymer 2.0 from the get-go.)
OK then, so the main thrust is to replace the existing html + jinja templates with static HTML, using existing polymer components, and letting the page request the content it needs from our REST API.
Yes, and check out the new next-sc repo. This will be the core repo going forward, as Blake will integrate the live data into Vimala’s front-end template.
Have you had any further thoughts as to what you’d like to do? We had a chat yesterday, and one suggestion was for you to do the templates for the search results pages. No-one’s got that on their immediate to-do list, and it’d be a fairly straightforward project for getting familiar with the process.
As for my availability, I generally have a few hours available each week. This should extend up to the rains retreat, early July. I’ll then disappear for 3 months.
Beyond that, I’ll be here at Bodhinyana and will hopefully be available long term.
Well, not exactly. The new website will be complete new with different format and layout so everything needs to be changed completely and not merely replace parts.
For the search-pages, it would be great if you could create an independent Polymer element that I can integrate with the rest later. Because those pages use paper-card, you can see at the code I used on the division-page.html to get you started.