Skip to content

Trimming removed in Vento templates #181

Description

@rdela

Thank you for this wonderful library.

In Vento, when I try to use trimming in Lume templates, {{- example -}} gets formatted to {{ example }}.

In VS Code settings.json:

"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": true,

If I add,

"[vento]": {
  "editor.formatOnSave": false
},

I can use trimming.

I also have this in my Lume project deno.json,

"lint": {
    "exclude": [
      "./_site"
    ],
    "rules": {
      "tags": [
        "recommended"
      ],
      "exclude": [
        "no-import-prefix"
      ]
    },
    "plugins": [
      "https://cdn.jsdelivr.net/gh/lumeland/lume@3.1.2/lint.ts"
    ]
  },
  "fmt": {
    "exclude": [
      "./_site"
    ]
  },

Please let me know if I have something misconfigured or incomplete, or if you need a more complete example to test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions