Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.13.0 #168

Closed
johanjanssens opened this issue Aug 1, 2019 · 0 comments
Closed

Release 0.13.0 #168

johanjanssens opened this issue Aug 1, 2019 · 0 comments
Assignees
Milestone

Comments

@johanjanssens
Copy link
Member

johanjanssens commented Aug 1, 2019

1. Form support #161

Easily implement forms in a page and store the form submissions in csv file, database, log, or a custom location.

form:
    name: contact
    fields:
        name: [string, required]
        email: [email, required]
        subject: [string, required]
        message: [string, required]
   processors: [csv, database: {table: name}, email: {recipient: info@foo.com, title: Contact Form, subject: New submission for contact form}]
    redirect: thank-you
    honeypot: name_01234567

The form definition includes the form fields validation rules, form processors, page to redirect to after a successful submission, and enables the honeypot. The Form API also offers support for POST only forms, aka form endpoints.

2. CSV support #160

Support for CSV files has been added for both data and collections.

Data: CSV files can now be accessed through the data() template function, both locally stored files or URL"s to files that return CSV.

Collections: Support for a CSV format has been added to allow exposing CSV data. For example to expose a list of data add a page called data.csv' and as frontmatter use:

3. Refactor config handling #163

Improves the config handling by moving the bootstrapping into ComPagesConfig and exposing the site path using getSitePath() method.

A new 'headers' config option is also added that allows to defining additional http headers. This can for example be used to setup http security headers.

Additional config options

  • headers: [array]
@johanjanssens johanjanssens added this to the 0.13.0 milestone Aug 1, 2019
@johanjanssens johanjanssens self-assigned this Aug 1, 2019
johanjanssens added a commit that referenced this issue Aug 1, 2019
@raeldc raeldc mentioned this issue Aug 1, 2019
62 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant