Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Feb 16, 2024
1 parent 990706d commit 68f90b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions app/tests/Unit/Console/BuildComponentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ public function it_builds_the_components()
$filesytem->ensureDirectoryExists(resource_path('js/splade'));
$filesytem->put(resource_path('js/splade/.gitignore'), "*\n!.gitignore\n");

$filesytem->cleanDirectory(resource_path('views/components/splade'));
$filesytem->ensureDirectoryExists(resource_path('views/components/splade'));
$filesytem->put(resource_path('views/components/splade/.gitignore'), "*\n!.gitignore\n");

$this->assertEquals(0, Artisan::call(BuildComponents::class));

foreach ([
Expand Down
4 changes: 2 additions & 2 deletions src/View/ComponentSlot.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public function toVueSlot(): string

private function getTemplateContents(): string
{
return '<!--splade-template-'.$this->hash.'-->'.$this->contents.'</template>';
return '<!--splade-template-'.$this->hash.'-->'.$this->contents;
}

public function toVueTemplate(): string
{
return '<template v-slot:'.$this->hash.'>'.$this->getTemplateContents().'</template>';
return '<template #'.$this->hash.'>'.$this->getTemplateContents().'</template>';
}
}

0 comments on commit 68f90b9

Please sign in to comment.