Compare commits
No commits in common. "525d7404096daf8668988bc64d5ee4d963c2b77d" and "4b02f0039900fb9c388bf81e1a561abdfef6b5e2" have entirely different histories.
525d740409
...
4b02f00399
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