Permalink
Browse files

Render with module embedded lists fix.

  • Loading branch information...
1 parent eb86208 commit 337e096841cde4adbfc5ea489abdec223ff0fc17 @massung massung committed Apr 26, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/dactyl.erl
View
@@ -88,6 +88,9 @@ explode ({either,[Param,True,False]},Args) ->
true -> render(True,Args);
_ -> render(False,Args)
end;
+explode ({list,[Param,Template]},{Mod,_}=ModArgs) ->
+ List=lookup(Param,ModArgs),
+ [render(Mod,Template,Props) || Props <- List];
explode ({list,[Param,Template]},Args) ->
List=lookup(Param,Args),
[render(Template,Props) || Props <- List];

0 comments on commit 337e096

Please sign in to comment.