- Be sure you have running mongodb on default port. Database
a3-helpers
will be auto-created. - Run the project in dev mode (see below). Ignore warnings, no need of user/session secret.
- You should see home page rendered with additional
Helper Test
section. - Open
modules/@apostrophecms/home-page/views/page.html
and uncoment around line 23<p>{{ helper.render("Same helper called from inside of a macro will fail") }}</p>
- You should see error page, look at the CLI output.
Changes made to the original a3 boilerprate to reproduce the issue:
- added
helper.include.html
,helper.macro.html
,plain.macro.html
inmodules/@apostrophecms/home-page/views/
- modified
modules/@apostrophecms/home-page/views/page.html
to include the macros and render additional section reproducing the issue in question - added
alias
and dummy helper inmodules/@apostrophecms/home-page/index.js
app.js
- shortName renamed toa3-helpers
package.json
: removed build fromnpm run dev
command, addedpostinstall
for initial build and better startup time
Install dependencies: npm install
Run npm run dev
to build the Apostrophe UI and start the site up. Remember, this is during alpha development, so we're all in "dev mode."
Right now, all the juicy info about A3 is in the a3 docs, so head over there and start reading! This boilerplate project is a fun introduction to the UI, but you'll want to know more to really try it out.