[A3] footerJs block
See original GitHub issueThe problem to solve
It would allow adding scripts after the core utils directly within the layout template. Currently A3 boilerplate proposes development workflow with wrong JS order - modules browser JS will end up before the core utils. No matter there is a workaround (defer attribute, dom loaded event), an extra layout block in the default core base layout would simplify the task of simply adding custom browser JS.
Proposed solution
Add {% block footerJs %}{% endblock %}
at the very end of template:outerLayoutBase.html
, just before the closing body
tag.
Change the a3-boilerplate
implementation to use this new block as a good example usage.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Wide Base A3 Print Press Lino Cut Press Block Printing
A3 : 11.7 x 16.5 inç. It is the perfect machine for those who want to print larger than A4. 36 mm thick...
Read more >a3-boilerplate/layout.html at main · apostrophecms/ ...
Simple, minimal starting point for new Apostrophe 3 projects - a3-boilerplate/layout.html at main · apostrophecms/a3-boilerplate.
Read more >Team Backpack
The A3 Performance Backpack is built to handle the toughest demands. We use a durable polished polyester fabric, reinforced stitching and nylon zippers....
Read more >Single lever locking panel base with cover. For use with A3, A4
Single lever locking panel base with cover. For use with A3, A4, D7 and D8 series. ; MFR: ABB - Installation Products ;...
Read more >CREATING A TITLE BLOCK for your Plans in Layout - YouTube
In this video, learn the basics for creating a title block in Layout! Learn to save your title block so that it shows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you tried putting your javascript files in modules/modulename/ui/public?
When you do that, they should become part of our javascript bundle automatically and go at the end.
I can see that we might need to provide another block that goes after our script tag for other reasons, but let’s talk about this solution first.
On Tue, Mar 2, 2021 at 4:39 AM Miro Yovchev notifications@github.com wrote:
–
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER APOSTROPHECMS | apostrophecms.com | he/him/his
In A3 there is an
{% block afterAposScripts %}{% endblock %}
block that is essentially the last thing in the body tag.