evanmiller/erlydtl — Issue #22: erlydtl_compiler:compile_dir FilePath error
Author: maxname
Created: 2012-01-13 19:02:16+00:00
State: open

Hi.

I write in my projecgt this code:
```erlang
erlydtl_compiler:compile_dir("templates/tags", Name, [{out_dir, "ebin"},{force_recompile, true}]).
```

then compile project with rebar, and get the error:
```
escript: exception error: no match of right hand side value
{error,{"templates/tags/templates/tags/style",
[{0,view_custom_tags,"Failed to read file"}]}}
```

If I change next code (erlydtl_compiler.erl line 123):
```erlang
FilePath = filename:join([Dir, File]),
```
to code
```erlang
FilePath = filename:join([Dir, filename:absname(File)]),
```

the error disappears.

Erl version: V5.9 (R15B).