Skip to content

Commit

Permalink
add with keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Metelkin committed Nov 20, 2019
1 parent 91ca78f commit 7a426c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 0.2.3

- add `include` statement instead of `import` action
- add `include file.heta type heta with {}` statement instead of `import` action

# 0.2.2

Expand Down
14 changes: 11 additions & 3 deletions include.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@ It is designed for two objectives:
- split the whole platform to subfiles for better code management;
- allow whiting code in various formats.

1. **Heta-file** is not only files containing Heta code but all other files that can be translated to Heta platform: xlsx, sbml, json, etc.
1. **Heta-file** means file that can be translated to Heta platform: xlsx, sbml, json, etc.

1. The identifier of the heta-file is the absolute path of file in file system. For example: `y:/the-platform/src/index.heta`.

1. The file can be loaded also by `include` action, but it is not recommended. See [actions](./actions#include).
1. A file can be loaded also by `include` action, but it is not recommended. See [actions](./actions#include).

1. The `include` have `type` property. The default type is `heta` and it means the file includes just regular Heta code.
1. `include` has `type` property. The default type is `heta` and it means the file includes just regular Heta code.

1. `include` can set additional parameters after `with` keyword in dictionary format

```heta
include file.xlsx type xlsx with {
options: { sheetNum: [1, 2], omitRows: 3 }
}
```

1. If you use another file type: `xlsx`, `dbsolve`, this means the code from the files will be parsed and transformed to heta format and can be used as regular Heta code. See [workflow](./workflow).

Expand Down

0 comments on commit 7a426c7

Please sign in to comment.