Updated to add support for classes with dot syntax.

ul.nav will generate <ul class="nav"> instead of <ul.nav>.