blocs/autoinclude

The auto include template for BLOCS

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:HTML

v1.0.5 2023-09-09 01:41 UTC

This package is auto-updated.

Last update: 2023-09-09 01:41:30 UTC


README

logo.svg

The PHP Template engine for Laravel

Laravelのためのテンプレートエンジン

Latest stable version Total downloads GitHub code size GitHub license Laravel awesome Laravel version PHP version

Website | Document | English

導入方法

composerで導入してください。

laravel-app % composer require blocs/autoinclude    
Using version ^1.0 for blocs/autoinclude
./composer.json has been created
Running composer update blocs/autoinclude
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
  - Locking blocs/autoinclude (v1.0.0)
  - Locking blocs/blocs (v1.1.28)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Installing blocs/blocs (v1.1.28): Extracting archive
  - Installing blocs/autoinclude (v1.0.0): Extracting archive
Generating autoload files

Datepicker

<!-- data-include="auto" -->

<input type="text" name="datepicker" class="ai-datepicker" />

Phone

<!-- data-include="auto" -->

<input type="text" name="phone" class="ai-phone" />

Select2

<!-- data-include="auto" -->

<select name="multipleSelect[]" class="ai-select2" multiple="multiple" style="width:100%" />
  <option value="1">Test1</option>
  <option value="2">Test2</option>
</select>

Tooltip

<!-- data-include="auto" -->

<!-- data-attribute="title" data-val="Tooltip<br />テストです" -->
<a data-bs-toggle="tooltip" data-bs-html="true" data-bs-placement="bottom">Tooltip</a>

Modal

<!-- data-include="auto" -->

<!--
  $modalTitle = "タイトル"
  $modalCloseLabel = "閉じる"
  $modalBody = "改行\n\n\n\n改行"
  $modalTarget = "exampleModal"
-->

<!-- data-attribute="data-bs-target" data-val=$modalTarget data-prefix="#" -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal">
    <i class="fa-brands fa-twitter"></i> モーダルを開く
</button>

<!-- data-bloc = "modalButton" -->
<button type="button" class="btn btn-primary">
    <i class="fa-brands fa-twitter"></i> 登録
</button>
<!-- data-endbloc -->

<!-- data-include = "modal" -->