Rebuilding the bundle helped me get a better understanding of how to create a Language Grammar, how a Language Grammar and a Theme are related to one another, and gave me a fair bit of practice writing regular expressions (an arcane skill that mysteriously brings me joy).ĭocumentation on Language Grammars remains a bit elusive and, while some references on theming are a bit less scarce, I've found it plenty difficult to get up to speed on the topic and feel confident about what I was doing. On top of this, I wanted to customize a theme to my preferences and struggled to get the themes I had working with the grammar in a way that made me happy.Īfter a few attempts to customize the PHP-Twig bundle, I ended up using it mostly as a reference and re-building the Craft-Twig fork of the bundle from scratch. Certain keywords were not recognized or highlighted incorrectly and a number of handy tab shortcuts and key bindings were not available. There was an existing PHP-Twig Textmate bundle which was a good starting point but there were several Craft-specific improvements I wanted to make. Over the past couple of years I've been working a lot with Craft CMS and Twig.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |