Skip to content

Commit

Permalink
refactor: remove yield tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 14, 2021
1 parent c3cc4a0 commit 89a8bbc
Show file tree
Hide file tree
Showing 30 changed files with 7 additions and 219 deletions.
17 changes: 0 additions & 17 deletions async-fixtures/yield-fallback/compiled.js

This file was deleted.

3 changes: 0 additions & 3 deletions async-fixtures/yield-fallback/index.edge

This file was deleted.

3 changes: 0 additions & 3 deletions async-fixtures/yield-fallback/index.json

This file was deleted.

1 change: 0 additions & 1 deletion async-fixtures/yield-fallback/index.txt

This file was deleted.

12 changes: 0 additions & 12 deletions async-fixtures/yield-html/compiled.js

This file was deleted.

1 change: 0 additions & 1 deletion async-fixtures/yield-html/index.edge

This file was deleted.

3 changes: 0 additions & 3 deletions async-fixtures/yield-html/index.json

This file was deleted.

1 change: 0 additions & 1 deletion async-fixtures/yield-html/index.txt

This file was deleted.

12 changes: 0 additions & 12 deletions async-fixtures/yield-tag/compiled.js

This file was deleted.

1 change: 0 additions & 1 deletion async-fixtures/yield-tag/index.edge

This file was deleted.

3 changes: 0 additions & 3 deletions async-fixtures/yield-tag/index.json

This file was deleted.

1 change: 0 additions & 1 deletion async-fixtures/yield-tag/index.txt

This file was deleted.

17 changes: 0 additions & 17 deletions fixtures/yield-fallback/compiled.js

This file was deleted.

3 changes: 0 additions & 3 deletions fixtures/yield-fallback/index.edge

This file was deleted.

3 changes: 0 additions & 3 deletions fixtures/yield-fallback/index.json

This file was deleted.

1 change: 0 additions & 1 deletion fixtures/yield-fallback/index.txt

This file was deleted.

12 changes: 0 additions & 12 deletions fixtures/yield-html/compiled.js

This file was deleted.

1 change: 0 additions & 1 deletion fixtures/yield-html/index.edge

This file was deleted.

3 changes: 0 additions & 3 deletions fixtures/yield-html/index.json

This file was deleted.

1 change: 0 additions & 1 deletion fixtures/yield-html/index.txt

This file was deleted.

12 changes: 0 additions & 12 deletions fixtures/yield-tag/compiled.js

This file was deleted.

1 change: 0 additions & 1 deletion fixtures/yield-tag/index.edge

This file was deleted.

3 changes: 0 additions & 3 deletions fixtures/yield-tag/index.json

This file was deleted.

1 change: 0 additions & 1 deletion fixtures/yield-tag/index.txt

This file was deleted.

2 changes: 1 addition & 1 deletion npm-audit.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h5 class="card-title">
<div class="card">
<div class="card-body">
<h5 class="card-title">
January 14th 2021, 3:17:39 am
January 14th 2021, 3:51:50 am
</h5>
<p class="card-text">Last updated</p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@poppinss/utils": "^2.5.9",
"edge-error": "^1.0.5",
"edge-lexer": "^3.2.2",
"edge-parser": "^7.0.0",
"edge-parser": "^7.0.1",
"he": "^1.2.0",
"lodash.merge": "^4.6.2",
"lodash.size": "^4.2.0",
Expand Down
6 changes: 2 additions & 4 deletions src/Tags/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,8 @@ export const componentTag: TagContract = {
const mainSlot: Slot = {
outputVar: 'slot_main',
props: {},
buffer: new EdgeBuffer(token.filename, {
buffer: buffer.create(token.filename, {
outputVar: 'slot_main',
rethrowCallPath: ['template', 'reThrow'],
}),
line: -1,
filename: token.filename,
Expand Down Expand Up @@ -256,9 +255,8 @@ export const componentTag: TagContract = {
*/
slots[slotName] = {
outputVar: `slot_${slotsCounter}`,
buffer: new EdgeBuffer(token.filename, {
buffer: buffer.create(token.filename, {
outputVar: `slot_${slotsCounter}`,
rethrowCallPath: ['template', 'reThrow'],
}),
props: slotProps,
line: -1,
Expand Down
93 changes: 0 additions & 93 deletions src/Tags/Yield.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/Tags/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export { slotTag as slot } from './Slot'
export { debuggerTag as debugger } from './Debugger'
export { setTag as set } from './Set'
export { unlessTag as unless } from './Unless'
export { yieldTag as yield } from './Yield'
export { layoutTag as layout } from './Layout'
export { sectionTag as section } from './Section'
export { superTag as super } from './Super'
Expand Down

0 comments on commit 89a8bbc

Please sign in to comment.