0

I'm editing my mojolicious templates (.ep extention, perl+html) in webmode. Everything works fine, except the indentation when I use elsif. Say I have

  % if ( $type eq 'A' ) {
  % } elsif ( $type eq 'B' ) {
  % } else {
     %# default  
  % }

then I end up get the following indentation if I hit TAB in each line

      % if ( $type eq 'A' ) {
      % } elsif ( $type eq 'B' ) {
  % } else {
    %# default
  % }

anyone know how to instruct web-mode to keep a proper indentation like in the first sniplet?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.