- May 2024
-
www.facultyfocus.com www.facultyfocus.com
-
Help faculty simplify course organization with customizable templates. We have a 16-week editable template that is available to our faculty, but we offer faculty and departments the opportunity to collaborate and develop templates tailored to their specific needs. Checklists for each recommendation ensure that the LMS course is user-friendly.
multiple templates
-
- Nov 2023
-
-
✅ We can actually use a neat trick which basically consists in making a CSS grid with a single grid item. All we really have to do then, is taking our grid-template-rows and make it transition from 0fr to 1fr: this way, our grid item will transition from 0 to its "natural" height. It's THAT simple:
```css .accordion - body { display: grid; grid - template - rows: 0 fr; transition: 250 ms grid - template - rows ease; }
.accordion: hover.accordion - body { grid - template - rows: 1 fr; }
.accordion - body>div { overflow: hidden; } ```
-
-
-
In-app custom credentials templates are now supported. When a credentials file does not exist, rails credentials:edit will now try to use lib/templates/rails/credentials/credentials.yml.tt to generate the credentials file, before falling back to the default template. This allows e.g. an open-source Rails app (which would not include encrypted credentials files in its repo) to include a credentials template, so that users who install the app will get a custom pre-filled credentials file when they run rails credentials:edit.
-
-
www.rfc-editor.org www.rfc-editor.org
Tags
Annotators
URL
-
-
github.com github.com
-
For more details, see RFC 6570.
-
- Jun 2023
-
stackoverflow.com stackoverflow.com
-
HTML 5 introduced the <template> element which can be used for this purpose (as now described in the WhatWG spec and MDN docs). A <template> element is used to declare fragments of HTML that can be utilized in scripts. The element is represented in the DOM as a HTMLTemplateElement which has a .content property of DocumentFragment type, to provide access to the template's contents. This means that you can convert an HTML string to DOM elements by setting the innerHTML of a <template> element, then reaching into the template's .content property.
```js /* * @param {String} HTML representing a single element * @return {Element} / function htmlToElement(html) { var template = document.createElement('template'); html = html.trim(); // Never return a text node of whitespace as the result template.innerHTML = html; return template.content.firstChild; }
var td = htmlToElement('<td>foo</td>'), div = htmlToElement('<div><span>nested</span> <span>stuff</span></div>');
/* * @param {String} HTML representing any number of sibling elements * @return {NodeList} / function htmlToElements(html) { var template = document.createElement('template'); template.innerHTML = html; return template.content.childNodes; }
var rows = htmlToElements('<tr><td>foo</td></tr><tr><td>bar</td></tr>'); ```
-
- Apr 2023
-
developer.mozilla.org developer.mozilla.org
- Feb 2023
-
medium.com medium.com
-
Here is the template I use for any Zettelkasten-related note:<%*const fileName = await tp.system.prompt("File Name");const fileType = await tp.system.suggester(["🌱", "🌿", "🌞", "🌲", "🧒", "🗺️"], ["seed", "fern", "incubating", "evergreen", "orphan", "moc"]);await tp.file.rename(fileName)let filePath = "100 Zettelkasten/"+fileNamelet mocQuery = ""switch (fileType) { case 'moc': filePath = "100 Zettelkasten/120 MOC/"+fileName mocQuery = '```dataview\nLIST\nFROM "100 Zettelkasten"\nWHERE contains(Topics,[['+fileName+']])\n```' break; case 'seed': filePath = "100 Zettelkasten/110 Zettelkasten Inbox/"+fileName break; }await tp.file.move(filePath)%>---aliases: tags: zettelkasten/<% fileType %>---Topics:: References:: # <% fileName %>---<% mocQuery %>
An interesting bit of code that could let me have a single template to create a note or a project or a MOC. I could replace 3 of my current templates with a single one, and reduce the number of special hotkeys too.
-
- Nov 2022
-
-
The GitHub repository for source code that generates the knowledge garden by @wfinck (which he calls a "digital garden"
-
-
github.com github.com
-
A template used by @wfinck to make this note in his public knowledge garden (ie, Zettelkasten notes with a displayed graph view of them)
-
- Sep 2022
-
stackoverflow.com stackoverflow.com
-
^([^\x00-\x20\x7f"'%<>\\^`{|}]|%[0-9A-Fa-f]{2}|{[+#./;?&=,!@|]?((\w|%[0-9A-Fa-f]{2})(\.?(\w|%[0-9A-Fa-f]{2}))*(:[1-9]\d{0,3}|\*)?)(,((\w|%[0-9A-Fa-f]{2})(\.?(\w|%[0-9A-Fa-f]{2}))*(:[1-9]\d{0,3}|\*)?))*})*$ \ \_____________/ \\____________/ \\__________________/ \__________________/ /\________________/ / \_________________________________________________________________/ // \ pct-encoded / \ operator \\ varchar varchar / modifier-level4 / varspec // \______________________________________/ \ \\________________________________________/ / // literals \ \ varname / // \ \_________________________________________________________/ // \ \ varspec // \ \____________________________________________________________________________________________________________________________// \ variable-list / \_________________________________________________________________________________________________________________________________________/ expression
-
-
twig.symfony.com twig.symfony.com
-
- Aug 2022
-
awwright.github.io awwright.github.io
Tags
Annotators
URL
-
-
www.bortzmeyer.org www.bortzmeyer.org
-
datatracker.ietf.org datatracker.ietf.org
- Apr 2022
-
xeiaso.net xeiaso.net
Tags
Annotators
URL
-
- Mar 2022
-
medialize.github.io medialize.github.io
Tags
Annotators
URL
-
- Jan 2022
-
chinese.freecodecamp.org chinese.freecodecamp.org
-
你可以将网格中的一些单元格组合成一个区域(area),并为该区域指定一个自定义名称。 可以通过给容器加上 grid-template-areas 来实现: grid-template-areas: "header header header" "advert content content" "advert footer footer"; 上面的代码将网格单元格分成四个区域:header、advert、content 和 footer。 每个单词代表一个单元格,每对引号代表一行
不是很懂这个的效果
-
-
github.com github.com
-
Its goal is to solve the problems with downloading templates to start your app from:
-
- May 2021
-
www.simplypsychology.org www.simplypsychology.org
-
APA title page (cover page) format, examples, and templates
APA title page (cover page) format, examples, and templates
-
- Mar 2021
-
rawgit.com rawgit.com
-
www.jackfranklin.co.uk www.jackfranklin.co.uk
-
My preference here is biased by the fact that I spend everyday at work building web components, so Svelte's approach feels very familiar to slots in web components.
first sighting: That <template>/<slot> is part of HTML standard and the reason Svelte uses similar/same syntax is probably because it was trying to make it match / based on that syntax (as they did with other areas of the syntax, some of it even JS/JSX-like, but more leaning towards HTML-like) so that it's familiar and consistent across platforms.
-
-
developer.mozilla.org developer.mozilla.org
-
<template> and <slot>
-
This element and its contents are not rendered in the DOM, but it can still be referenced using JavaScript.
-
-
wondertools.substack.com wondertools.substack.com
-
In this post I’m sharing:
Just a fantastic template to use for my blog/newsletter.
Tags
Annotators
URL
-
- Jan 2021
- Dec 2020
-
-
What pain point are you perceiving?
-
- Nov 2020
-
github.com github.com
-
github.com github.com
-
But I always thought that if Svelte will change its syntax to something new, it will more look like ES6 Template Literals
-
Btw, I also personally like Dust-syntax: https://github.com/linkedin/dustjs/wiki/Dust-Tutorial
-
-
github.com github.com
- Oct 2020
-
-
hyperscript is much simpler to refactor and DRY up your code than with JSX, because, being vanilla javascript, its easier to work with variable assignment, loops and conditionals.
-
Don't think so; template strings solve the problem JSX tries to tackle without forking the language.
Tags
- comparison with:
- it's just _
- reuse existing language constructs
- template language vs. reusing existing language constructs
- template language: bad: by not reusing existing language constructs; forced to reinvent equivalents which are inferior and unfamiliar
- hyperscript
- javascript
- forking
- javascript: tagged template literals
- controversial
- JSX
- making it easy for later refactoring
Annotators
URL
-
-
www.npmjs.com www.npmjs.comhyperx2
-
This module is similar to JSX, but provided as a standards-compliant ES6 tagged template string function.
-
tagged template string virtual dom builder
-
-
github.com github.com
-
render(html`<${Button} on:click=${() => (clicked += 1)}>Click Me!<//>`)
Compared to https://github.com/kenoxa/svelte-jsx#api, this alows on:click instead of on_click.
So maybe this syntax allows for fewer workarounds overall?
-
-
-
github.com github.com
-
svelte-htm - Hyperscript Tagged Markup for svelte; a jsx-like syntax using Tagged Templates
-
-
-
by using tagged templates we can inline function calls
(below)
-
-
github.com github.com
-
HTML template strings for the Browser with support for Server Side Rendering in Node.
Tags
Annotators
URL
-
-
2ality.com 2ality.com
-
trusktr herman willems • 2 years ago Haha. Maybe React should focus on a template-string syntax and follow standards (and provide options for pre-compiling in Webpack, etc).
-
To suggest template literals cover the level of abstraction that JSX has to offer is just dumb. They're great and all, but c'mon now...
-
-
facebook.github.io facebook.github.io
-
However, this would lead to further divergence. Tooling that is built around the assumptions imposed by template literals wouldn't work. It would undermine the meaning of template literals. It would be necessary to define how JSX behaves within the rest of the ECMAScript grammar within the template literal anyway.
-
Template literals work well for long embedded DSLs. Unfortunately the syntax noise is substantial when you exit in and out of embedded arbitrary ECMAScript expressions with identifiers in scope.
-
Why not just use that instead of inventing a syntax that's not part of ECMAScript?
-
ECMAScript 6th Edition (ECMA-262) introduces template literals which are intended to be used for embedding DSL in ECMAScript.
-
Why not Template Literals?
Tags
- embedding
- benefiting from shared tooling that can be reused
- ECMAScript standard
- good point
- leverage the fact that tooling already exists
- non-standard
- verbose/noisy
- syntax noise
- undermine
- intended use/purpose
- good question
- reinventing the wheel / not invented here
- exceptions to the rule
- why invent a new syntax?
- DSL
- assumptions
- why not?
- substantial
- prefer plain code over new template language
- javascript: tagged template literals
- developer's intention
- design goals
- controversial
- JSX
- divergence
Annotators
URL
-
-
medium.com medium.com
-
I know that it is the matter of taste and a debatable thing, I find JSX and regular javascript flow operators a lot more readable than any sort of {#blocks} and directives.
-
Yes, you cannot fully express a modern app through templates without sacrificing flexibility and code reusability.
-
Because templates are not Turing-complete, and if they were, they would require vDOM.
-
-
tech.ebayinc.com tech.ebayinc.com
-
that does not mean that I am advocating the other extreme–i.e., a templating language that allows a lot of logic. I find such templating languages, especially those that allow the host programming languages to be used inside the template, to be hard to read, hard to maintain, and simply a bad choice.
-
-
github.com github.com
-
Solid supports templating in 3 forms JSX, Tagged Template Literals, and Solid's HyperScript variant.
-
-
-
Templates are prone to unnoticed runtime errors, are hard to test, and are not easy to restructure or decompose.
-
In contrast, Javascript-made templates can be organised into components with nicely decomposed and DRY code that is more reusable and testable.
-
In contrast, React apps shun templates and require the developer to create their DOM in Javascript, typically aided with JSX.
-
- Sep 2020
-
github.com github.com
-
In a similar vein to (#33), it is arguably just something that compensates for the lack of power in the template language relative to JavaScript.
-
-
github.com github.com
-
The complaint is that by choosing less powerful languages, template-based frameworks are then forced to reintroduce uncanny-valley versions of those constructs in order to add back in missing functionality, thereby increasing the mount of stuff people have to learn.
-
In general, I'm unpersuaded by these arguments (learning curve is determined not just by unfamiliar syntax, but by unfamiliar semantics and APIs as well, and the frameworks in question excel at adding complexity in those areas).
-
One of the arguments that's frequently deployed in favour of JSX-based frameworks over template-based ones is that JSX allows you to use existing language constructs:
Tags
- familiar semantics
- reuse existing language constructs
- complexity
- React
- template language vs. reusing existing language constructs
- template language: bad: by not reusing existing language constructs; forced to reinvent equivalents which are inferior and unfamiliar
- prefer plain code over new template language
- unpersuaded
- javascript
- learning curve
- template language
- familiar syntax
- don't create a new syntax
- it's just _
Annotators
URL
-
-
markojs.com markojs.comMarko1
-
github.com github.com
-
Proposes a syntax similar to JSX.
My question would instead be, why not just use JSX for Svelte templates?
-
Compared to JSX it looks way better (IMO)
-
-
github.com github.com
Tags
Annotators
URL
-
-
svelte.dev svelte.dev
-
if the idea of using a template language makes you shudder — your fears are misplaced, but that's a topic for another day
-
-
github.com github.com
Tags
Annotators
URL
-
- Jul 2020
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
-
github.com github.com
Tags
Annotators
URL
-
- Jun 2020
-
stackoverflow.com stackoverflow.com
-
What would be nice is if JavaScript had a built-in way to do what I can do in Ruby with:
> I18n.interpolate('Hi, %{name}', name: 'Fred') => "Hi, Fred"
But to be fair, I18n comes from i18n library, so JS could just as easily (and I'm sure does) have a library that does the same thing.
Update: Actually, you can do this in plain Ruby (so why do we even need
I18n.interpolate
?):main > "Hi, %{name}" % {name: 'Fred'} => "Hi, Fred"
main > ? String#% From: string.c (C Method): Owner: String Visibility: public Signature: %(arg1) Number of lines: 9 Format---Uses str as a format specification, and returns the result of applying it to arg. If the format specification contains more than one substitution, then arg must be an Array or Hash containing the values to be substituted. See Kernel::sprintf for details of the format string. "%05d" % 123 #=> "00123" "%-5s: %016x" % [ "ID", self.object_id ] #=> "ID : 00002b054ec93168" "foo = %{foo}" % { :foo => 'bar' } #=> "foo = bar"
I guess that built-in version is fine for simple cases. You only need to use
I18n.translate
if you need its more advanced features likeI18n.config.missing_interpolation_argument_handler
.
-
-
-
clean and understandable markup template without the help of 3rd party
-
-
medium.com medium.com
-
I really do not like writing templates in a file, such as #each , #if. I do not like to prefer using new approaches for which i can do it with purely in JavaScript.
-
- May 2020
-
github.com github.com
-
www.netlifycms.org www.netlifycms.org
Tags
Annotators
URL
-
-
-
Van den Akker, O., Weston, S. J., Campbell, L., Chopik, W. J., Damian, R. I., Davis-Kean, P., Hall, A. N., Kosie, J. E., Kruse, E. T., Olsen, J., Ritchie, S. J., Valentine, K. D., van ’t Veer, A. E., & Bakker, M. (2019). Preregistration of secondary data analysis: A template and tutorial [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/hvfmr
-
- Dec 2019
-
github.com github.com
Tags
Annotators
URL
-
-
yarnpkg.com yarnpkg.comYarn1
- Aug 2019
-
www.sciencedirect.com www.sciencedirect.com
-
qPCR
no template control has absolutely no amplification!
-
- Apr 2019
-
-
THIS SERIESA PREFERRED STOCK PURCHASE AGREEMENT
Hi Craig-- here's a public note to you that any one else could see-- but we could also create a private group here and have a conversation just between ourselves and others.
-
-
-
In Postmodernism, or, The Cultural Logic of Late Capitalism (1991), J
-
- Mar 2019
-
www.microbiologyresearch.org www.microbiologyresearch.org
-
-
The fluorescence signal atCT37±7 corre-sponds to the no-template-control andrepresents bacterial DNA contamination inthe commercially supplied reagents.
-
-
iris.peabody.vanderbilt.edu iris.peabody.vanderbilt.edu
-
ample Professional Development (PD) Activity Collection
Iris Center has put together a sample professional development activity collection. This is for educators and others creating professional development in other work areas. A link on this page called PD Facilitator's Guide Template accesses a template for any professional development leader to follow. It is broken down into time frames. For example, introduction five minutes, information session ten minutes. The other nice feature it has is that it already incorporates hands on activities and group work. Both of which are essential to a quality learning session. However, technology and how to use technology to better professional development is not incorporated. Rating 6/10
-
- Dec 2018
-
static1.squarespace.com static1.squarespace.com
- Nov 2018
-
iris.peabody.vanderbilt.edu iris.peabody.vanderbilt.edu
-
Our Sample Professional Development (PD) Activity Collection is designed to serve as a resource to PD providers creating training events both for practicing educators and beginning teachers engaged in induction experiences. In this collection, users will find examples of the ways in which information about evidence-based practices,
The page has a template, activities, and resources instructors can use to help create professional development courses. Rating: 4/5
-
-
hrcouncil.ca hrcouncil.ca
-
This web page gives trainers and trainees an outline of what make a good learning experience. It also has a template for individual development and examples of self assessment. Rating: 4/5
-
- Mar 2018
- Feb 2017
-
www.washingtonpost.com www.washingtonpost.com
-
Published in the days leading up to the 45th president’s inauguration, two new books purport to show a path forward for liberals in Trump’s America.
-
In his introduction to “What We Do Now,” co-editor Dennis Johnson writes of the widespread “despair,” “grief” and “disillusionment” that followed the election.
-
- Dec 2016
-
polite.technology polite.technology
-
Luckily, GitHub introduced issue templates:
One of my favorite: "picture of a cute animal " :)
"
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged) "
Docker - PULL_REQUEST_TEMPLATE
examples:
Tags
Annotators
URL
-
- Mar 2016
-
blackboard.american.edu blackboard.american.edu
-
In their book American English, Walt Wolfram and Natalie Schilling-Estes (1998, 281-84) point out thal Stan
Single-Author Template
-
- Dec 2015
-
www.entrepreneur.com www.entrepreneur.com
-
How to Make Your Startup Introduction Email Simple, Clear and Awesome
Startup Introduction Email help
Tags
Annotators
URL
-
- Apr 2015
-
onepagelove.com onepagelove.com
-
Superawesome
güzel
Tags
Annotators
URL
-
-
onepagelove.com onepagelove.com
-
Off the Shelf
fena değil
Tags
Annotators
URL
-
-
onepagelove.com onepagelove.comMyway1
-
Myway
-
-
onepagelove.com onepagelove.comNeue1
-
Neue
-