UKHomeOfficeForms / hof

Bootstrap a HOF project
MIT License
15 stars 17 forks source link

Make static `pages` a 1st class citizen. #158

Closed JoeChapman closed 6 years ago

JoeChapman commented 6 years ago

This enables users to define static pages at the same level as steps either in an existing app adjacent to existing steps or in a separate app without any steps.

Also deprecates getCookies and getTerms.

        routes: [{
          views: `path/to/views`,
          steps: {
            '/one': {}
          },
          pages: {
            '/page-a': 'view-a',
            '/page-b': 'view-b'
          },
        }]
lennym commented 6 years ago

I was all set to ask for some README docs, but that doesn't seem to be a thing. Could you add something to hof-guide at your earliest convenience please?

JoeChapman commented 6 years ago

I was all set to ask for some README docs, but that doesn't seem to be a thing. Could you add something to hof-guide at your earliest convenience please?

yes I Iooked