Skip to content

Commit

Permalink
Fix to include
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Nov 16, 2023
1 parent b51c366 commit 8fcdc6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Claro, aqui está uma documentação em inglês, formatada em Markdown, para a s
To include an HTML file, use the following syntax in your HTML:
```html
<?include html "path/to/file.html"?>
<?include html path/to/file.html?>
```
### Script Execution
Expand Down Expand Up @@ -339,7 +339,7 @@ To execute scripts, embed them within the following tags:
```html
<!-- Include a navigation bar -->
<div>
<?include html "components/navigation.html"?>
<?include html components/navigation.html?>
</div>
```
Expand Down
3 changes: 2 additions & 1 deletion bigbashview/usr/lib/bbv/server/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from shutil import which



class url_handler(object):
__url__ = '/'

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

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

for match in matches:
Expand Down

0 comments on commit 8fcdc6f

Please sign in to comment.