Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Simplify block arguments passing #9

@vladfaust

Description

@vladfaust

This is a mess:

{% if block.args[0] && block.args[0].stringify != "attr" %}
{{block.args[0]}} = attr
{% end %}
{% if block.args[1] && block.args[1].stringify != "value" %}
{{block.args[1]}} = value
{% end %}
{% if block.args[2] && block.args[2].stringify != "rule" %}
{{block.args[2]}} = rule
{% end %}

Metadata

Metadata

Assignees

Labels

refactorSomething's worth refactoring

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions