# write_content

Write string content directly to a file in the container.

```rhai
bah.write_content(content, dest_path) -> Bah
```

## Parameters

- `content` (string): The content to write
- `dest_path` (string): The destination file path in the container

## Returns

Returns the `Bah` builder for method chaining.

## Examples

```rhai
let builder = bah("mycontainer", "ubuntu:22.04")
    .write_content("Hello World", "/var/www/html/index.html")
    .write_content("#!/bin/bash\necho 'Starting app'", "/usr/local/bin/start.sh")
    .run("chmod +x /usr/local/bin/start.sh");

// Using alias
let builder2 = bah("app", "alpine:latest")
    .write("<h1>Welcome</h1>", "/var/www/index.html");
```

## Notes

- This is a chainable method
- Alias: `write()` can be used instead
- Useful for writing configuration files or scripts
- Parent directories are created if they don't exist
