volta-cli/volta

Create a simple template crate to support URL template hooks.

Open

#260 aberto em 7 de fev. de 2019

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (189 forks)batch import
code qualitygood first issue

Métricas do repositório

Stars
 (8.309 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Currently, the URL Template hooks introduced in #241 use a simple string replace to resolve a template. Going forward, we should make this into a separate crate and add some additional functionality, such as escaping the brace characters.

We likely don't need a fully-fledged templating engine, since we are only dealing with URLs, but having the logic in a separate crate will make it easier to iterate on the behavior.

Guia do colaborador