<commit_before># resource resource

`resource` is a special function to load an another recipe as a resource. 
The difference between `resource` and `include_recipe` is that
`resource` evaluates a recipe file in the independent context, whereas
`include_recipe` evaluates a recipe file in the same context that loads it.

## Actions

* `run`: Run the recipe (default).

## Attributes

* `path` (string) (default: name of resource):

And you can set arbitrary attributes to pass variables to a recipe.

## Example

```lua
resource "example" {
    variable1 = "aaa",
    variable2 = "bbb",
}
```

example.lua

```lua
execute "ls -la"


-- you can use varilabes in the recipe.
print(var.variable1)
print(var.variable2) 
```<commit_msg>update docs<commit_after># resource resource

`resource` is a special function to load an another recipe as a resource. 
The difference between `resource` and `include_recipe` is that
`resource` evaluates a recipe file in the independent context, whereas
`include_recipe` evaluates a recipe file in the same context that loads it.

## Actions

* `run`: Run the recipe (default).

## Attributes

* `path` (string) (default: name of resource):

And you can set arbitrary attributes to pass variables to a recipe.

## Example

```lua
resource "example" {
    variable1 = "aaa",
    variable2 = "bbb",
}
```

example.lua

```lua
software_package "httpd"

template "/etc/httpd/conf/httpd.conf" {

}

-- you can use varilabes in the recipe.
print(var.variable1)
print(var.variable2) 
```
{'fraction_non_alphanumeric': 0.10707204230006609, 'fraction_numerical': 0.005287508261731659, 'mean_word_length': 4.330985915492958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4792531', 'n_tokens_mistral': 474, 'n_tokens_neox': 452, 'n_words': 188}