I've recently had to build out email templates for some work I am doing and for those who have done this before you know how painful it can be to get it working in all email clients. Fortunately, the folks over at ZURB have released inky which does the heavy-lifting for you by translating
<columns> into table-based layouts.
Unfortunately, the inky-rb gem they released uses a non-standard file extension
.inky-erb instead of
.inky.erb. This not only breaks the Rails asset pipeline naming convention, but means I have zero syntax highlighting in my editors.
Now for the good news that by adding the following to my Spacemacs configuration, I have full ERB and HTML major modes running:
(defun dotspacemacs/user-config () ;; inky-rb uses the `.inky-erb` extension ;; make this render like ERB (add-to-list 'auto-mode-alist '("\\.inky-erb\\'" . web-mode)) (setq web-mode-engines-alist '(("erb" . "\\.inky-erb\\'"))) )
Subscribe to eval ( code )
Get the latest posts delivered right to your inbox