Comments (3)
Let's talk this over tomorrow.
My only concern is that we're teaching a little bit of an anti-pattern if the main.js file, which is included on every page on the site, is extended to include JavaScript that should only ultimately appear on a single page.
I might be thinking about this wrong but here's what I'm itching to figure out: Can we put a slugged "harvard-park-homicides.js" file in the _scripts folder and have it compiled to be imported via a script tag in the nunjucks template alongside main.js? I fumbled around with this a little today but didn't find a way to make it click.
from first-visual-story.
Yeah, maybe best to figure out on the phone, but it brings up two questions:
- If we're building a single-page app, then shouldn't main.js relate as much as possible to that page?
- I've actually tripped up on this myself, if we're building a single page-app then maybe we should just be working off the root of the site instead of
/harvard-park-homicides/
from first-visual-story.
Yes it should. And I just switched it.
from first-visual-story.
Related Issues (20)
- Do we want to specify that people should be on a specific node version? HOT 1
- Header may not be deep enough, looks like the IRE logo bleeds off the bottom HOT 1
- Add discussion of var/let/const in maps section
- Add discussion of other mapping libraries in maps section
- Add subsections in maps section
- remove -'s from -%} references HOT 1
- explicit {% endblock %} statements HOT 1
- Should we work in a google doc ArchieML document as the CMS?
- Review blocks including {% endfor %} HOT 1
- Students wound up completely deleting contents of _layouts/base.html HOT 2
- It would be cool to install bootstrap with npm
- Add a section to the charts CSS part about SCSS
- Split out CSS into a separate chapter
- Add Xcode to the list of dependencies
- Code snippets are off in the templating chapter HOT 1
- Map not working if you follow the instructions HOT 1
- Verify that auto reload is working and then maybe have a note about what to do if it isn't HOT 1
- Explain what GitHub is a bit more at the top of Chapter 3
- Datawrapper CSS might be buggy HOT 1
- Cut the `<section>` tags to streamline the script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from first-visual-story.