mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Literally inject stubs from double block
This commit is contained in:
parent
5a4e95e8a2
commit
9091b8d027
2 changed files with 78 additions and 24 deletions
|
@ -49,7 +49,16 @@ module Spectator
|
|||
{{value}}
|
||||
end
|
||||
{% end %}
|
||||
{% if block %}{{block.body}}{% end %}
|
||||
|
||||
{% if block %}{% block.body %}
|
||||
{% for expr in block.body.is_a?(Expressions) ? block.body.expressions : [block.body] %}
|
||||
{% if expr.is_a?(Call) && expr.name == :stub.id %}
|
||||
inject_{{expr}}
|
||||
{% else %}
|
||||
{{expr}}
|
||||
{% end %}
|
||||
{% end %}
|
||||
{% end %}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue