repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/missing-tilt-library-app/config.rb | middleman-core/fixtures/missing-tilt-library-app/config.rb | ignore "danger-zone/*"
ignore "*.textile" | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/nested-layout-app/config.rb | middleman-core/fixtures/nested-layout-app/config.rb | set :layout, :inner
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/auto-css-app/config.rb | middleman-core/fixtures/auto-css-app/config.rb | %w{
/auto-css.html
/auto-css
/auto-css/
/auto-css/auto-css.html
/auto-css/sub/auto-css.html
}.each do |path|
page path, layout: false
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/link-to-app/config.rb | middleman-core/fixtures/link-to-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/padrino-helpers-app/config.rb | middleman-core/fixtures/padrino-helpers-app/config.rb | helpers do
def title
content_tag :h1 do
"Title"
end
end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/default-alt-tags-app/config.rb | middleman-core/fixtures/default-alt-tags-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/more-extensionless-text-files-app/config.rb | middleman-core/fixtures/more-extensionless-text-files-app/config.rb | activate :directory_indexes
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/manual-layout/config.rb | middleman-core/fixtures/manual-layout/config.rb | set :layout, :custom
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/lorem-app/config.rb | middleman-core/fixtures/lorem-app/config.rb | # activate :minify_css
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/large-build-app/config.rb | middleman-core/fixtures/large-build-app/config.rb | page "/spaces in file.html", layout: false
config[:port] = 5555
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/content-type-app/config.rb | middleman-core/fixtures/content-type-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/frontmatter-app/config.rb | middleman-core/fixtures/frontmatter-app/config.rb | config[:frontmatter_delims][:yaml] << %w(\\--- \\---)
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/sass-in-slim-app/config.rb | middleman-core/fixtures/sass-in-slim-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/liquid-app/config.rb | middleman-core/fixtures/liquid-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/javascript-app/config.rb | middleman-core/fixtures/javascript-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/markdown-frontmatter-options-app/config.rb | middleman-core/fixtures/markdown-frontmatter-options-app/config.rb | set :markdown, smartypants: true
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/custom-layout-app2/config.rb | middleman-core/fixtures/custom-layout-app2/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/multiple-data-sources-app/config.rb | middleman-core/fixtures/multiple-data-sources-app/config.rb | files.watch :data, path: File.join(root, 'data0'), priority: 100
files.watch :data, path: File.join(root, 'data1')
files.watch :data, path: File.join(root, 'data2') | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/relative-assets-app/config.rb | middleman-core/fixtures/relative-assets-app/config.rb | set :fonts_dir, 'fonts'
configure :build do
activate :relative_assets
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/coffeescript-app/config.rb | middleman-core/fixtures/coffeescript-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/frontmatter-settings-app/config.rb | middleman-core/fixtures/frontmatter-settings-app/config.rb | # Proxy ignored.html, which should ignore itself through a frontmatter
proxy 'proxied.html', 'ignored.html'
page 'override_layout.html', layout: :alternate
page 'page_mentioned.html'
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/multiple-sources-with-duplicate-file-names-app/config.rb | middleman-core/fixtures/multiple-sources-with-duplicate-file-names-app/config.rb | files.watch :source, path: File.join(root, 'source2'),
destination_dir: 'source2' | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/slim-content-for-app/config.rb | middleman-core/fixtures/slim-content-for-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/different-engine-partial/config.rb | middleman-core/fixtures/different-engine-partial/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/engine-matching-layout/config.rb | middleman-core/fixtures/engine-matching-layout/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/external-pipeline-error/config.rb | middleman-core/fixtures/external-pipeline-error/config.rb | activate :external_pipeline,
name: :failing,
command: "mv does-not-exist tmp/file.js",
source: "tmp",
latency: 2
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/manual-layout-override/config.rb | middleman-core/fixtures/manual-layout-override/config.rb | set :layout, :custom
page "/", layout: :another
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/different-engine-layout/config.rb | middleman-core/fixtures/different-engine-layout/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/feature-params-app/config.rb | middleman-core/fixtures/feature-params-app/config.rb | set :layout, false
class ExtensionA < ::Middleman::Extension
helpers do
def get_option(key)
extensions[:extension_a].options[key]
end
end
option :hello, '', ''
option :hola, '', ''
end
Middleman::Extensions.register :extension_a, ExtensionA
activate :extension_a, hello: "world", hola: "mundo"
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/asset-hash-minified-app/config.rb | middleman-core/fixtures/asset-hash-minified-app/config.rb | configure :build do
# Minify Javascript on build
activate :minify_javascript
activate :asset_hash
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/wildcard-directory-index-app/config.rb | middleman-core/fixtures/wildcard-directory-index-app/config.rb | activate :directory_indexes
page "/admin/*", layout: :admin
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/partial-chained_templates-app/config.rb | middleman-core/fixtures/partial-chained_templates-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/auto-js-directory-index-app/config.rb | middleman-core/fixtures/auto-js-directory-index-app/config.rb | activate :directory_indexes | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/clean-nested-app/config.rb | middleman-core/fixtures/clean-nested-app/config.rb | set :build_dir, "sub/dir" | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/extension-api-deprecations-app/config.rb | middleman-core/fixtures/extension-api-deprecations-app/config.rb | class LayoutDisabler < Middleman::Extension
def initialize(app, options_hash = {}, &block)
super
app.set :layout, false
end
end
::Middleman::Extensions.register(:layout_disabler, LayoutDisabler)
activate :layout_disabler
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/manual-layout-missing/config.rb | middleman-core/fixtures/manual-layout-missing/config.rb | set :layout, :custom
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/page-classes-app/config.rb | middleman-core/fixtures/page-classes-app/config.rb | page "/sub1/page-classes.html", layout: false
page "/sub1/sub2/page-classes.html", layout: false
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/custom-renderers/links_in_bold.rb | middleman-core/fixtures/custom-renderers/links_in_bold.rb | require 'middleman-core/renderers/redcarpet'
class LinksInBold < Middleman::Renderers::MiddlemanRedcarpetHTML
def link(link, title, content)
scope.link_to("**#{content}**", link, { title: title })
end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/auto-js-app/config.rb | middleman-core/fixtures/auto-js-app/config.rb | %w{
/auto-js.html
/auto-js
/auto-js/
/auto-js/auto-js.html
/auto-js/sub/auto-js.html
}.each do |path|
page path, layout: false
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/data-app/config.rb | middleman-core/fixtures/data-app/config.rb | data.pages.each do |p|
proxy p.from, p.to
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/csspie/config.rb | middleman-core/fixtures/csspie/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/clean-app/config-empty.rb | middleman-core/fixtures/clean-app/config-empty.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/clean-app/config-hidden-dir-after.rb | middleman-core/fixtures/clean-app/config-hidden-dir-after.rb | set :build_dir, ".build"
ignore "/should_be_ignored.html"
ignore "/should_be_ignored2.html"
proxy "/target_ignore.html", "/should_be_ignored3.html", ignore: true
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/clean-app/config-hidden-dir-before.rb | middleman-core/fixtures/clean-app/config-hidden-dir-before.rb | set :build_dir, ".build"
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/clean-app/config.rb | middleman-core/fixtures/clean-app/config.rb | proxy "/fake.html", "/real.html", layout: false
ignore "/should_be_ignored.html"
ignore "/should_be_ignored2.html"
proxy "/target_ignore.html", "/should_be_ignored3.html", ignore: true
%w(one two).each do |num|
proxy "/fake/#{num}.html", "/real/index.html", locals: { num: num }
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/clean-app/config-complications.rb | middleman-core/fixtures/clean-app/config-complications.rb | proxy "/fake.html", "/real.html", layout: false
ignore "/should_be_ignored.html"
ignore "/should_be_ignored2.html"
proxy "/target_ignore.html", "/should_be_ignored3.html", ignore: true
%w(one two).each do |num|
proxy "/fake/#{num}.html", "/real/index.html", locals: { num: num }
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/markdown-in-haml-app/config.rb | middleman-core/fixtures/markdown-in-haml-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/strip-url-app/config.rb | middleman-core/fixtures/strip-url-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/automatic-directory-matcher-app/config.rb | middleman-core/fixtures/automatic-directory-matcher-app/config.rb | set :automatic_directory_matcher, "--"
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/sass-assets-path-app/config.rb | middleman-core/fixtures/sass-assets-path-app/config.rb | set :sass_assets_paths, [
File.join(root, "assets", "stylesheets"),
File.join(root, "my-vendor", "stylesheets")
]
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/related-files-app/config.rb | middleman-core/fixtures/related-files-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/extensionless-text-files-app/config.rb | middleman-core/fixtures/extensionless-text-files-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/gzip-app/config.rb | middleman-core/fixtures/gzip-app/config.rb | activate :gzip
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/no-layout/config.rb | middleman-core/fixtures/no-layout/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/fonts-app/config.rb | middleman-core/fixtures/fonts-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/generator-test/config.rb | middleman-core/fixtures/generator-test/config.rb | ###
# Page options, layouts, aliases and proxies
###
# Per-page layout changes:
#
# With no layout
# page "/path/to/file.html", layout: false
#
# With alternative layout
# page "/path/to/file.html", layout: :otherlayout
# Proxy (fake) files
# page "/this-page-has-no-template.html", proxy: "/template-file.html" do
# @which_fake_page = "Rendering a fake page with a variable"
# end
###
# Helpers
###
# Automatic image dimensions on image_tag helper
# activate :automatic_image_sizes
# Methods defined in the helpers block are available in templates
# helpers do
# def some_helper
# "Helping"
# end
# end
# Change the CSS directory
# set :css_dir, "alternative_css_directory"
# Change the JS directory
# set :js_dir, "alternative_js_directory"
# Change the images directory
# set :images_dir, "alternative_image_directory"
# Production configuration
configure :production do
# Minify CSS
# activate :minify_css
# Minify Javascript
# activate :minify_javascript
# Enable cache buster
# activate :cache_buster
# Use relative URLs
# activate :relative_assets
# Or use a different image path
# set :http_prefix, "/Content/images/"
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/minify-js-app/config.rb | middleman-core/fixtures/minify-js-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/markdown-in-slim-app/config.rb | middleman-core/fixtures/markdown-in-slim-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/more-frontmatter-settings-app/config.rb | middleman-core/fixtures/more-frontmatter-settings-app/config.rb | activate :directory_indexes
# Proxy ignored.html, which should ignore itself through a frontmatter
proxy 'proxied.html', 'ignored.html'
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/preview-app/config.rb | middleman-core/fixtures/preview-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/import-app/config.rb | middleman-core/fixtures/import-app/config.rb | import_file File.expand_path("static.html", root), "/static2.html"
import_path File.expand_path("bower_components/", root)
import_path File.expand_path("bower_components", root) do |target_path, original_path|
target_path.sub('bower_components', 'bower_components2')
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/env-app/config.rb | middleman-core/fixtures/env-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/env-app/environments/development.rb | middleman-core/fixtures/env-app/environments/development.rb | set :api_key, "dev1"
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/env-app/environments/production.rb | middleman-core/fixtures/env-app/environments/production.rb | set :api_key, "prod2"
activate :minify_css
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/relative-app/config.rb | middleman-core/fixtures/relative-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/custom-layout-app/config.rb | middleman-core/fixtures/custom-layout-app/config.rb | set :erb, layout_engine: :str
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/asset-hash-remove-filename/config.rb | middleman-core/fixtures/asset-hash-remove-filename/config.rb |
activate :asset_hash,
rename_proc: lambda { |path, _basename, digest, extension, _options|
"#{path}#{digest}#{extension}"
}
activate :relative_assets
activate :directory_indexes
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/traversal-app/config.rb | middleman-core/fixtures/traversal-app/config.rb | proxy "/sub/fake.html", "/proxied.html", ignore: true
proxy "/sub/fake2.html", "/proxied.html", ignore: true
proxy "/directory-indexed/fake.html", "/proxied.html", ignore: true
proxy "/directory-indexed/fake2.html", "/proxied.html", ignore: true
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/scss-app/config.rb | middleman-core/fixtures/scss-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/ember-cli-app/config.rb | middleman-core/fixtures/ember-cli-app/config.rb | activate :external_pipeline,
name: :ember,
command: "cd test-app/ && ember #{build? ? :build : :serve} --environment #{config[:environment]}",
source: "test-app/dist",
latency: 2 | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/indexable-app/config.rb | middleman-core/fixtures/indexable-app/config.rb | activate :directory_indexes
page "/leave_me_alone.html", directory_index: false
page "/wildcard*", directory_index: false
page /regex_.*/, directory_index: false
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/capture-html-app/config.rb | middleman-core/fixtures/capture-html-app/config.rb | require "slim"
page "/capture_html_erb.html", layout: :capture_html
page "/capture_html_haml.html", layout: :capture_html
page "/capture_html_slim.html", layout: :capture_html
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/nested-data-app/config.rb | middleman-core/fixtures/nested-data-app/config.rb | set :layout, false
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/basic-data-app/config.rb | middleman-core/fixtures/basic-data-app/config.rb | page "/data.html", layout: false
page "/data3.html", layout: false
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/asset-hash-prefix/config.rb | middleman-core/fixtures/asset-hash-prefix/config.rb |
activate :asset_hash,
prefix: "myprefix-"
activate :relative_assets
activate :directory_indexes
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/asset-hash-prefix/lib/middleware.rb | middleman-core/fixtures/asset-hash-prefix/lib/middleware.rb | class Middleware
def initialize(app)
@app = app
end
def call(env)
status, headers, response = @app.call(env)
body = ''
response.each {|part| body += part }
if (env["PATH_INFO"] =~ /css$/)
body += "\n/* Added by Rack filter */"
status, headers, response = Rack::Response.new(body, status, headers).finish
end
[status, headers, response]
end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/automatic-image-size-app/config.rb | middleman-core/fixtures/automatic-image-size-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/clean-dir-app/config.rb | middleman-core/fixtures/clean-dir-app/config.rb | activate :directory_indexes
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/glob-app/config.rb | middleman-core/fixtures/glob-app/config.rb | page "/index.html", layout: false
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/custom-src-app/config.rb | middleman-core/fixtures/custom-src-app/config.rb | set :source, 'src'
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/asset-hash-source-map/config.rb | middleman-core/fixtures/asset-hash-source-map/config.rb |
activate :asset_hash
activate :relative_assets
activate :directory_indexes
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/asset-hash-source-map/lib/middleware.rb | middleman-core/fixtures/asset-hash-source-map/lib/middleware.rb | class Middleware
def initialize(app)
@app = app
end
def call(env)
status, headers, response = @app.call(env)
body = ''
response.each {|part| body += part }
if (env["PATH_INFO"] =~ /css$/)
body += "\n/* Added by Rack filter */"
status, headers, response = Rack::Response.new(body, status, headers).finish
end
[status, headers, response]
end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/paginate-app/config.rb | middleman-core/fixtures/paginate-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/partials-app/config.rb | middleman-core/fixtures/partials-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/external-helpers/config.rb | middleman-core/fixtures/external-helpers/config.rb | require "lib/hello_helper"
helpers HelloHelper
page "/", layout: false
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/external-helpers/helpers/derp.rb | middleman-core/fixtures/external-helpers/helpers/derp.rb | module Derp
def three; "Three"; end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/external-helpers/helpers/four_helpers.rb | middleman-core/fixtures/external-helpers/helpers/four_helpers.rb | module FourHelpers
def four; "Four"; end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/external-helpers/helpers/one_helper.rb | middleman-core/fixtures/external-helpers/helpers/one_helper.rb | module OneHelper
def one; "One"; end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/external-helpers/helpers/yet_another_thingy.rb | middleman-core/fixtures/external-helpers/helpers/yet_another_thingy.rb | module YetAnotherThingy
def two; "Two"; end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/external-helpers/lib/hello_helper.rb | middleman-core/fixtures/external-helpers/lib/hello_helper.rb | module HelloHelper
def hello
"Hello World"
end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/page-id-app/config-proc.rb | middleman-core/fixtures/page-id-app/config-proc.rb | %w(1 2 3).each do |n|
proxy "/#{n}.html", "/index.html", id: "page#{n}"
end
page "/overwrites/*", id: :"something-else"
config[:page_id_generator] = ->(path){ path + "-foo" }
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/page-id-app/config.rb | middleman-core/fixtures/page-id-app/config.rb | %w(1 2 3).each do |n|
proxy "/#{n}.html", "/index.html", id: "page#{n}"
end
page "/overwrites/*", id: :"something-else"
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/multiple-layouts/config.rb | middleman-core/fixtures/multiple-layouts/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false | |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/content-for-app/config.rb | middleman-core/fixtures/content-for-app/config.rb | require "slim"
page "/content_for_erb.html", layout: :content_for
page "/content_for_haml.html", layout: :content_for
page "/content_for_slim.html", layout: :content_for
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/v4-extension-callbacks/config.rb | middleman-core/fixtures/v4-extension-callbacks/config.rb | class ExtensionOne < ::Middleman::Extension
helpers do
def extension_two_was_activated
extensions[:extension_one].extension_two_was_activated
end
end
attr_reader :extension_two_was_activated
def initialize(app, options_hash={})
super
after_extension_activated :extension_two do
@extension_two_was_activated = true
end
end
end
Middleman::Extensions.register :extension_one, ExtensionOne
class ExtensionTwo < ::Middleman::Extension
helpers do
def extension_one_was_activated
extensions[:extension_two].extension_one_was_activated
end
end
attr_reader :extension_one_was_activated
def initialize(app, options_hash={})
super
after_extension_activated :extension_one do
@extension_one_was_activated = true
end
end
end
Middleman::Extensions.register :extension_two, ExtensionTwo
activate :extension_one
activate :extension_two
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/dynamic-pages-app/config.rb | middleman-core/fixtures/dynamic-pages-app/config.rb | # -*- coding: utf-8 -*-
proxy "/fake.html", "/real.html", layout: false
proxy "fake2.html", "/real.html", layout: false
proxy "fake3.html", "real.html", layout: false
proxy "/fake4.html", "real.html", layout: false
ignore "/should_be_ignored.html"
ignore "/should_be_ignored2.html"
proxy "/target_ignore.html", "/should_be_ignored3.html", ignore: true
ignore "should_be_ignored4.html"
ignore "should_be_ignored5.html"
proxy "target_ignore2.html", "/should_be_ignored6.html", ignore: true
proxy "target_ignore3.html", "should_be_ignored7.html", ignore: true
proxy "/target_ignore4.html", "should_be_ignored8.html", ignore: true
%w(one two).each do |num|
proxy "/fake/#{num}.html", "/real/index.html", ignore: true, locals: { num: num }
proxy "fake2/#{num}.html", "/real/index.html", ignore: true, locals: { num: num }
proxy "fake3/#{num}.html", "real/index.html", ignore: true, locals: { num: num }
proxy "/fake4/#{num}.html", "real/index.html", ignore: true, locals: { num: num }
end
proxy "明日がある.html", "/real.html", layout: false
page "f*/*", locals: { all_glob: "I am all glob" }
page "fake/*", locals: { glob_var: "I am one glob" }
page "fake2/*", locals: { glob_var: "I am two glob" }
page "fake3/*", locals: { glob_var: "I am three glob" }
page "fake4/*", locals: { glob_var: "I am four glob" }
["tom", "dick", "harry"].each do |name|
proxy "/about/#{name}.html", "/should_be_ignored9.html", locals: { person_name: name }, ignore: true
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/asset-hash-app/config.rb | middleman-core/fixtures/asset-hash-app/config.rb |
activate :asset_hash
activate :relative_assets
activate :directory_indexes
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/asset-hash-app/lib/middleware.rb | middleman-core/fixtures/asset-hash-app/lib/middleware.rb | class Middleware
def initialize(app)
@app = app
end
def call(env)
status, headers, response = @app.call(env)
body = ''
response.each {|part| body += part }
if (env["PATH_INFO"] =~ /css$/)
body += "\n/* Added by Rack filter */"
status, headers, response = Rack::Response.new(body, status, headers).finish
end
[status, headers, response]
end
end
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/i18n-force-locale/config.rb | middleman-core/fixtures/i18n-force-locale/config.rb | [:en, :es].each do |locale|
proxy "/#{locale}/index.html", "index.html", ignore: true, lang: locale
end
proxy "/fr/index.html", "index.html", lang: :fr
activate :i18n
# This is what breaks i18n, just because it adds a resource list manipulator that
# forces a rebuild of the resource list.
activate :asset_hash
| ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
middleman/middleman | https://github.com/middleman/middleman/blob/b497703afb715044bc5cfcd5616bd3825323505b/middleman-core/fixtures/more-preview-app/config.rb | middleman-core/fixtures/more-preview-app/config.rb | ruby | MIT | b497703afb715044bc5cfcd5616bd3825323505b | 2026-01-04T15:39:40.166212Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.