How to create page with content from /data/my.yml file?

For now I migrating from Jekyll to Hugo. & I have misunderstanding.
I want to create page with customer reviews. All reviews are in yml-file.
What workflow in Hugo to create page with this data?

In Jekyll I have yml-file in data directory & customer_reviews.html file in root directory (in which i have loop that get my yml-data & render my page).

I’m sure others are more familiar with this, but they do have documentation on using a .toml as a data file to fill out templates:

@kritoke is correct - the Data Files feature supports YAML, JSON and TOML.

Yes I know about /data.
What about logic? How to create page? Empty md file & layout with the same name as .md?

You might be trying to do something which I’m trying also.

One thing I’m confused about:

In Jekyll I have yml-file in data directory & customer_reviews.html file in root directory (in which i have loop that get my yml-data & render my page)

Why would this be in root directory?

For what I’m doing (listing categories based on folder location), I’m putting base category pages in Content, and then the data to fill those pages in data and sub folders (representing the categories). It’s work in progress right now, so I can’t help more than that.

However, it did make me think something like a {{ createpage " … .html" }} would be useful, but that might be just because I’m trying to do something a bit random.