Compare commits
No commits in common. "36d56358122f17443a534fbf515d0e48bda48189" and "f2aa55bc3ef3c0f5ab9c9fbc4aca8a38a2b5f841" have entirely different histories.
36d5635812
...
f2aa55bc3e
22
views/tests/view_complex.php
Normal file
22
views/tests/view_complex.php
Normal file
@ -0,0 +1,22 @@
|
||||
@css(test1.css)
|
||||
@js(test1.js)
|
||||
@js(test2_<?= $some['expression'] ?>)
|
||||
|
||||
@extra
|
||||
<?php phpinfo() ?>
|
||||
@endextra
|
||||
|
||||
@extends(parent)
|
||||
|
||||
@section(section1)
|
||||
<div>Test HTML with @extends - section 1</div>
|
||||
@endsection
|
||||
|
||||
@section(section2)
|
||||
<div>Test HTML with @extends - section 2</div>
|
||||
@endsection
|
||||
|
||||
@extra
|
||||
<?php $a = 'test_string' ?>
|
||||
EXTRA
|
||||
@endextra
|
5
views/tests/view_invalid_multiple_extends.php
Normal file
5
views/tests/view_invalid_multiple_extends.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends(parent1)
|
||||
|
||||
@extends(parent2)
|
||||
|
||||
<div>Test HTML with multiple @extends</div>
|
6
views/tests/view_invalid_multiple_sections_open.php
Normal file
6
views/tests/view_invalid_multiple_sections_open.php
Normal file
@ -0,0 +1,6 @@
|
||||
@extends(parent)
|
||||
|
||||
@section(section1)
|
||||
@section(section2)
|
||||
|
||||
<div>Test HTML with opening @section before previous closed</div>
|
4
views/tests/view_invalid_section_not_open.php
Normal file
4
views/tests/view_invalid_section_not_open.php
Normal file
@ -0,0 +1,4 @@
|
||||
@extends(parent)
|
||||
|
||||
<div>Test HTML with @endsection when no section is open</div>
|
||||
@endsection
|
3
views/tests/view_invalid_section_without_extends.php
Normal file
3
views/tests/view_invalid_section_without_extends.php
Normal file
@ -0,0 +1,3 @@
|
||||
@section(section1)
|
||||
|
||||
<div>Test HTML with @section but without @extends</div>
|
4
views/tests/view_with_assets.php
Normal file
4
views/tests/view_with_assets.php
Normal file
@ -0,0 +1,4 @@
|
||||
@css(test.css)
|
||||
@js(test.js)
|
||||
@js(test_<?= $some['expression'] ?>)
|
||||
<div>Test HTML with @css and @js</div>
|
5
views/tests/view_with_extends.php
Normal file
5
views/tests/view_with_extends.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends(parent)
|
||||
|
||||
@section(section1)
|
||||
<div>Test HTML with @extends</div>
|
||||
@endsection
|
1
views/tests/view_without_extends.php
Normal file
1
views/tests/view_without_extends.php
Normal file
@ -0,0 +1 @@
|
||||
<div>Test HTML without @extends</div>
|
Loading…
Reference in New Issue
Block a user