Help for this page
$html =~ s{#include file="([^"]+)"}{&add_template($1)}gei
<!--#include file="somefolder/cc.html" -->
$html =~ s{\<\!\-\-#include file="([^"]+)".*?\-\-\>}{&add_template($1) +}gei