Skip to content

Commit 8fcdc6f

Browse files
committed
Fix to include
1 parent b51c366 commit 8fcdc6f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Claro, aqui está uma documentação em inglês, formatada em Markdown, para a s
304304
To include an HTML file, use the following syntax in your HTML:
305305
306306
```html
307-
<?include html "path/to/file.html"?>
307+
<?include html path/to/file.html?>
308308
```
309309
310310
### Script Execution
@@ -339,7 +339,7 @@ To execute scripts, embed them within the following tags:
339339
```html
340340
<!-- Include a navigation bar -->
341341
<div>
342-
<?include html "components/navigation.html"?>
342+
<?include html components/navigation.html?>
343343
</div>
344344
```
345345

bigbashview/usr/lib/bbv/server/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from shutil import which
3030

3131

32+
3233
class url_handler(object):
3334
__url__ = '/'
3435

@@ -86,7 +87,7 @@ def called(self, options, content, query):
8687
return "File not found"
8788

8889
def process_includes(self, html_content):
89-
pattern = r'<\?include (\w+) "(.*?)"\?>'
90+
pattern = r'<\?include (\w+)(.*?)\?>'
9091
matches = re.finditer(pattern, html_content, re.DOTALL)
9192

9293
for match in matches:

0 commit comments

Comments
 (0)