custom HTML demo template receives CSS options

The html options received by a custom demo template were very limited. Right now it receives all the cssContext and it's more flexible.