This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function drop_vars(string $string, array $vars, array $enclosure = ['{{', '}}'], string $escapeStr = '@'): string | |
{ | |
// Escape escapeStr and enclosure | |
$escapeStr = preg_quote($escapeStr, '/'); | |
// Escape enclosure phrases | |
[$open, $close] = array_map(fn($i) => preg_quote($i, '/'), $enclosure); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div style="width: 100%;height: 100%;"></div> | |
</template> | |
<script> | |
import * as monaco from 'monaco-editor'; | |
export default { | |
name: 'MonacoEditor', | |
props: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!function_exists('s_view')) { | |
function s_view(string $id, string $template, array $data = [], array $mergeData = []): string | |
{ | |
$filename = $id; | |
$path = storage_path('framework/tmp_blade'); | |
View::addLocation($path); |